diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-03-01 22:16:15 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-03-01 22:16:15 +0000 |
commit | 4ddf768a4fc98bfc2e18a7076bd0397967e3de5e (patch) | |
tree | 8049eb9dec027b429757925cce70f724c8151a8e /src/or/connection.c | |
parent | 59ec8ca3f1bbc20a982d1047666cd9483bb07704 (diff) | |
download | tor-4ddf768a4fc98bfc2e18a7076bd0397967e3de5e.tar.gz tor-4ddf768a4fc98bfc2e18a7076bd0397967e3de5e.zip |
Forward-port new reasons; clean up code more; add code to convert new reasons to SOCKS5 reply codes; add code to convert errnos to reasons. New code still needs to get invoked.
svn:r3719
Diffstat (limited to 'src/or/connection.c')
-rw-r--r-- | src/or/connection.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection.c b/src/or/connection.c index f44185ac2d..79c98fd280 100644 --- a/src/or/connection.c +++ b/src/or/connection.c @@ -914,7 +914,7 @@ loop_again: connection_close_immediate(conn); /* Don't flush; connection is dead. */ if (CONN_IS_EDGE(conn)) { connection_edge_end(conn, (char)(connection_state_is_open(conn) ? - END_STREAM_REASON_MISC : END_STREAM_REASON_CONNECTFAILED), + END_STREAM_REASON_MISC : END_STREAM_REASON_CONNECTREFUSED), conn->cpath_layer); } connection_mark_for_close(conn); @@ -1092,7 +1092,7 @@ int connection_handle_write(connection_t *conn) { if (!ERRNO_IS_CONN_EINPROGRESS(e)) { log_fn(LOG_INFO,"in-progress connect failed. Removing."); if (CONN_IS_EDGE(conn)) - connection_edge_end(conn, END_STREAM_REASON_CONNECTFAILED, + connection_edge_end(conn, END_STREAM_REASON_CONNECTREFUSED, conn->cpath_layer); connection_close_immediate(conn); |