aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-03 08:48:32 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-03 08:48:32 +0000
commit5e2e6555a27c3afd872a9fe5ac1c6d208e274922 (patch)
treef7ff4607b3c7e30cf30af463b6baefa82afe09a0
parent419a672222aeeb5f021e43ce468686828d784621 (diff)
downloadtor-5e2e6555a27c3afd872a9fe5ac1c6d208e274922.tar
tor-5e2e6555a27c3afd872a9fe5ac1c6d208e274922.tar.gz
and a minor patch
svn:r1215
-rw-r--r--src/or/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 6b1f22641..18e643bb1 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -251,7 +251,7 @@ static void conn_close_if_marked(int i) {
} else {
retval = flush_buf(conn->s, conn->outbuf, &conn->outbuf_flushlen);
}
- if(retval == 0 &&
+ if(retval >= 0 &&
conn->hold_open_until_flushed && connection_wants_to_flush(conn)) {
log_fn(LOG_INFO,"Holding conn (fd %d) open for more flushing.",conn->s);
/* XXX should we reset timestamp_lastwritten here? */