diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-03-02 03:13:05 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-03-02 03:13:05 +0000 |
commit | e14f812a67e2816dc3fb9b8fcc2bf83fb8d93559 (patch) | |
tree | 27a0f5a623e8b51f2b69d4e90aaf1e991d86849d /src/or/connection_edge.c | |
parent | b0b396a7ce77fd68ef900e5a3096ee1961389327 (diff) | |
download | tor-e14f812a67e2816dc3fb9b8fcc2bf83fb8d93559.tar.gz tor-e14f812a67e2816dc3fb9b8fcc2bf83fb8d93559.zip |
Still more code to make sure we send the right number and kind of RELAY END cells
svn:r3723
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index c30fd5285c..f0a9fbde26 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -78,8 +78,7 @@ int connection_edge_process_inbuf(connection_t *conn, int package_partial) { case AP_CONN_STATE_OPEN: case EXIT_CONN_STATE_OPEN: if (connection_edge_package_raw_inbuf(conn, package_partial) < 0) { - /* XXXX We can't tell *why* package failed. -NM */ - connection_edge_end(conn, END_STREAM_REASON_MISC, conn->cpath_layer); + /* (We already sent an end cell if possible) */ connection_mark_for_close(conn); return -1; } @@ -275,6 +274,7 @@ void connection_ap_expire_beginning(void) { if (!circ) { /* it's vanished? */ log_fn(LOG_INFO,"Conn is waiting (address %s), but lost its circ.", conn->socks_request->address); + conn->has_sent_end = 1; /* No circuit to receive end cell. */ connection_mark_for_close(conn); continue; } |