[or-cvs] stop printing a log message at every iteration through the
arma at seul.org
arma at seul.org
Thu Mar 9 06:34:36 UTC 2006
Update of /home2/or/cvsroot/tor/src/or
In directory moria:/home/arma/work/onion/cvs/tor/src/or
Modified Files:
main.c
Log Message:
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.
Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.627
retrieving revision 1.628
diff -u -p -d -r1.627 -r1.628
--- main.c 9 Mar 2006 00:18:16 -0000 1.627
+++ main.c 9 Mar 2006 06:34:33 -0000 1.628
@@ -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;
}
More information about the tor-commits
mailing list