diff options
author | Roger Dingledine <arma@torproject.org> | 2004-11-15 07:50:15 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-11-15 07:50:15 +0000 |
commit | 67aa3b66c520183f7b195f9cdc63ffa19670688e (patch) | |
tree | e79f30fdab6316c180be721484694477cbb5d20c /src/or/connection.c | |
parent | 72dd656b885d6072985ab628a3e4d09755f9819a (diff) | |
download | tor-67aa3b66c520183f7b195f9cdc63ffa19670688e.tar.gz tor-67aa3b66c520183f7b195f9cdc63ffa19670688e.zip |
clean up socks handling, refuse connections to port 0
svn:r2888
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index d1dbf0cfc8..ceadfb6ed5 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -180,6 +180,15 @@ void connection_free_all(void) { connection_free(carray[i]); } +/** Do any cleanup needed: + * - Directory conns that failed to fetch a rendezvous descriptor + * need to inform pending rendezvous streams. + * - OR conns need to call rep_hist_note_*() to record status. + * - AP conns need to send a socks reject if necessary. + * - Exit conns need to call connection_dns_remove() if necessary. + * - AP and Exit conns need to send an end cell if they can. + * - DNS conns need to fail any resolves that are pending on them. + */ void connection_about_to_close_connection(connection_t *conn) { @@ -268,15 +277,7 @@ void connection_close_immediate(connection_t *conn) } /** Mark <b>conn</b> to be closed next time we loop through - * conn_close_if_marked() in main.c. Do any cleanup needed: - * - Directory conns that fail to fetch a rendezvous descriptor need - * to inform pending rendezvous streams. - * - OR conns need to call rep_hist_note_*() to record status. - * - AP conns need to send a socks reject if necessary. - * - Exit conns need to call connection_dns_remove() if necessary. - * - AP and Exit conns need to send an end cell if they can. - * - DNS conns need to fail any resolves that are pending on them. - */ + * conn_close_if_marked() in main.c. */ int _connection_mark_for_close(connection_t *conn) { |