diff options
author | Roger Dingledine <arma@torproject.org> | 2006-03-09 06:34:33 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2006-03-09 06:34:33 +0000 |
commit | e11f900a2aaab04c43342fc9b609ad5ee6a43c93 (patch) | |
tree | 6392486451063f0e9769e99127b8ed804a540d98 /src/or/main.c | |
parent | 9b55b50b8734b18c076c7228b800375bf64b4238 (diff) | |
download | tor-e11f900a2aaab04c43342fc9b609ad5ee6a43c93.tar.gz tor-e11f900a2aaab04c43342fc9b609ad5ee6a43c93.zip |
stop printing a log message at every iteration through the
event loop when holding open a conn for flushing but it
doesn't want to flush any more bytes yet.
svn:r6114
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/main.c b/src/or/main.c index 148c6e0307..9705b69d58 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -473,9 +473,10 @@ conn_close_if_marked(int i) if (retval >= 0 && /* Technically, we could survive things like TLS_WANT_WRITE here. But don't bother for now. */ conn->hold_open_until_flushed && connection_wants_to_flush(conn)) { - LOG_FN_CONN(conn, (LOG_INFO,LD_NET, - "Holding conn (fd %d) open for more flushing.", - conn->s)); + if (retval > 0) + LOG_FN_CONN(conn, (LOG_INFO,LD_NET, + "Holding conn (fd %d) open for more flushing.", + conn->s)); /* XXX should we reset timestamp_lastwritten here? */ return 0; } |