From 5e2e6555a27c3afd872a9fe5ac1c6d208e274922 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Wed, 3 Mar 2004 08:48:32 +0000 Subject: and a minor patch svn:r1215 --- src/or/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/or') 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? */ -- cgit v1.2.3