summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-02-21 04:30:14 +0000
committerNick Mathewson <nickm@torproject.org>2008-02-21 04:30:14 +0000
commit063ced890373c1327b521ffc2481f609c58ea4d7 (patch)
tree9a479de5e348f09ba608da8766f5a722fd88b259
parent47e6247673e4d47f30467e78897c5364320e860b (diff)
downloadtor-063ced890373c1327b521ffc2481f609c58ea4d7.tar.gz
tor-063ced890373c1327b521ffc2481f609c58ea4d7.zip
r18296@catbus: nickm | 2008-02-20 23:30:11 -0500
Answer one xxx020 item; move 7 other ones to a new "XXX020rc" category: they should get fixed before we cut a release candidate. arma: please review these to see whether you have fixes/answers for any. Please check out the other 14 XXX020s to see if any look critical for the release candidate. svn:r13640
-rw-r--r--src/common/tortls.c4
-rw-r--r--src/or/command.c3
-rw-r--r--src/or/connection.c2
-rw-r--r--src/or/directory.c4
-rw-r--r--src/or/dns.c2
-rw-r--r--src/or/main.c4
6 files changed, 10 insertions, 9 deletions
diff --git a/src/common/tortls.c b/src/common/tortls.c
index 8394491945..ed5bf30b8b 100644
--- a/src/common/tortls.c
+++ b/src/common/tortls.c
@@ -284,8 +284,8 @@ tor_tls_get_error(tor_tls_t *tls, int r, int extra,
return _TOR_TLS_ZERORETURN;
log(severity, LD_NET, "TLS error: Zero return");
tls_log_errors(tls, severity, doing);
- /* XXXX020 Actually, a 'zero return' error has a pretty specific meaning:
- * the connection has been closed cleanly. */
+ /* XXXX020rc Actually, a 'zero return' error has a pretty specific
+ * meaning: the connection has been closed cleanly. */
return TOR_TLS_ERROR_MISC;
default:
tls_log_errors(tls, severity, doing);
diff --git a/src/or/command.c b/src/or/command.c
index 5da9316f18..66723d4dd0 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -478,7 +478,8 @@ command_process_versions_cell(var_cell_t *cell, or_connection_t *conn)
connection_mark_for_close(TO_CONN(conn));
return;
} else if (highest_supported_version == 1) {
- /*XXXXX020 consider this carefully. */
+ /* Negotiating version 1 makes no sense, since version 1 has no VERSIONS
+ * cells. */
log_fn(LOG_PROTOCOL_WARN, LD_OR,
"Used version negotiation protocol to negotiate a v1 connection. "
"That's crazily non-compliant. Closing connection.");
diff --git a/src/or/connection.c b/src/or/connection.c
index ef352f958e..3b4ef79d3e 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -1860,7 +1860,7 @@ loop_again:
/* The other side's handle_write will never actually get called, so
* we need to invoke the appropriate callbacks ourself. */
connection_t *linked = conn->linked_conn;
- /* XXXX020 Do we need to ensure that this stuff is called even if
+ /* XXXX020rc Do we need to ensure that this stuff is called even if
* conn dies in a way that causes us to return -1 earlier? */
if (n_read) {
diff --git a/src/or/directory.c b/src/or/directory.c
index 2a05c390dc..b3558bd6f9 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -199,7 +199,7 @@ directories_have_accepted_server_descriptor(void)
{
smartlist_t *servers = router_get_trusted_dir_servers();
or_options_t *options = get_options();
- /* XXX020 If any authority of the needed type is down, this
+ /* XXX020rc If any authority of the needed type is down, this
* function will never return true. Perhaps we need to be
* tolerant of down servers? Or even better, should we change
* this so one successful upload is enough? -RD */
@@ -1678,7 +1678,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
int rejected = 0;
if (rejected_hdr) {
if (!strcmp(rejected_hdr, "Yes")) {
- /* XXXX020 use this information; be sure to upload next one
+ /* XXXX020rc use this information; be sure to upload next one
* sooner. */
rejected = 1;
}
diff --git a/src/or/dns.c b/src/or/dns.c
index 9576fc13ad..63c9b4e10a 100644
--- a/src/or/dns.c
+++ b/src/or/dns.c
@@ -586,7 +586,7 @@ dns_resolve(edge_connection_t *exitconn)
if (!exitconn->_base.marked_for_close) {
connection_free(TO_CONN(exitconn));
- //XXX020 ... and we just leak exitconn otherwise? -RD
+ //XXX020rc ... and we just leak exitconn otherwise? -RD
// If it's marked for close, it's on closeable_connection_lst in
// main.c. If it's on the closeable list, it will get freed from
// main.c. -NM
diff --git a/src/or/main.c b/src/or/main.c
index eb0e438dd0..cbd8179527 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -500,7 +500,7 @@ conn_write_callback(int fd, short events, void *_conn)
edge_conn->end_reason = END_STREAM_REASON_INTERNAL;
conn->edge_has_sent_end = 1;
}
- /* XXX020 do we need a close-immediate here, so we don't try to flush? */
+ /* XXX020rc do we need a close-immediate here, so we don't try to flush? */
connection_mark_for_close(conn);
}
}
@@ -574,7 +574,7 @@ conn_close_if_marked(int i)
LOG_FN_CONN(conn, (LOG_INFO,LD_NET,
"Holding conn (fd %d) open for more flushing.",
conn->s));
- /* XXX020 should we reset timestamp_lastwritten here? */
+ /* XXX020rc should we reset timestamp_lastwritten here? */
return 0;
}
if (connection_wants_to_flush(conn)) {