diff options
author | Roger Dingledine <arma@torproject.org> | 2004-06-01 17:31:13 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-06-01 17:31:13 +0000 |
commit | 4181d18b3ddb8eafe64a339392b6c42a7fdc9f5d (patch) | |
tree | 1a81c8a514e9669ec7f3673973039cda25deb02b /src/or/buffers.c | |
parent | 1ef411fefdde460a03d0c37d1893fee20d450602 (diff) | |
download | tor-4181d18b3ddb8eafe64a339392b6c42a7fdc9f5d.tar.gz tor-4181d18b3ddb8eafe64a339392b6c42a7fdc9f5d.zip |
declare the epipe bug a non-bug.
now we catch and ignore epipe signals, and when write returns epipe,
we simply return -1 and close the socket/connection.
svn:r1928
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r-- | src/or/buffers.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c index a67f47bee5..13824a20a7 100644 --- a/src/or/buffers.c +++ b/src/or/buffers.c @@ -250,8 +250,6 @@ int flush_buf(int s, buf_t *buf, int *buf_flushlen) write_result = send(s, buf->mem, *buf_flushlen, 0); if (write_result < 0) { if(!ERRNO_IS_EAGAIN(tor_socket_errno(s))) { /* it's a real error */ - /* get a stack trace to find epipe bugs */ - tor_assert(tor_socket_errno(s) != EPIPE); return -1; } log_fn(LOG_DEBUG,"write() would block, returning."); |