[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] better debugging for lonely flushes
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
main.c
Log Message:
better debugging for lonely flushes
Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.189
retrieving revision 1.190
diff -u -d -r1.189 -r1.190
--- main.c 3 Mar 2004 06:26:34 -0000 1.189
+++ main.c 3 Mar 2004 07:26:58 -0000 1.190
@@ -239,8 +239,11 @@
* has already been closed as unflushable. */
/* FIXME there's got to be a better way to check for this -- and make other checks? */
log_fn(LOG_WARN,
- "Conn (fd %d, type %d, state %d) marked for close, but wants to flush.",
- conn->s, conn->type, conn->state);
+ "Conn (fd %d, type %d, state %d) marked for close, but wants to flush %d bytes. "
+ "Marked at %s:%d",
+ conn->s, conn->type, conn->state,
+ conn->outbuf_flushlen, conn->marked_for_close_file, conn->marked_for_close);
+ /* XXX change the above to 'warn', and go through and fix all the complaints */
if(connection_speaks_cells(conn)) {
if(conn->state == OR_CONN_STATE_OPEN) {
flush_buf_tls(conn->tls, conn->outbuf, &conn->outbuf_flushlen);