aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-04-16 23:13:30 -0400
committerNick Mathewson <nickm@torproject.org>2014-04-16 23:13:30 -0400
commitc856193199151bf26208981f63ca723f9c4cf5d6 (patch)
tree497743183d28cedfd4ad53beb7d488200e61d1cd /src
parent74ddd5f739696749409c933f82cf3a93152da6cc (diff)
parent6ee9138576ae289c4ed726ddbb7b3f547f111f70 (diff)
downloadtor-c856193199151bf26208981f63ca723f9c4cf5d6.tar
tor-c856193199151bf26208981f63ca723f9c4cf5d6.tar.gz
Merge remote-tracking branch 'andrea/bug11304'
Diffstat (limited to 'src')
-rw-r--r--src/or/connection.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/connection.c b/src/or/connection.c
index 0c61b0d61..2e72e6b39 100644
--- a/src/or/connection.c
+++ b/src/or/connection.c
@@ -4023,6 +4023,12 @@ connection_write_to_buf_impl_,(const char *string, size_t len,
"write_to_buf failed. Closing circuit (fd %d).", (int)conn->s);
circuit_mark_for_close(circuit_get_by_edge_conn(TO_EDGE_CONN(conn)),
END_CIRC_REASON_INTERNAL);
+ } else if (conn->type == CONN_TYPE_OR) {
+ or_connection_t *orconn = TO_OR_CONN(conn);
+ log_warn(LD_NET,
+ "write_to_buf failed on an orconn; notifying of error "
+ "(fd %d)", (int)(conn->s));
+ connection_or_close_for_error(orconn, 0);
} else {
log_warn(LD_NET,
"write_to_buf failed. Closing connection (fd %d).",