[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] expire wedged dir conns after 5min without write, not simpl...



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:
expire wedged dir conns after 5min without write, not simply after 5min


Index: main.c
===================================================================
RCS file: /home/or/cvsroot/src/or/main.c,v
retrieving revision 1.244
retrieving revision 1.245
diff -u -d -r1.244 -r1.245
--- main.c	19 Apr 2004 01:59:20 -0000	1.244
+++ main.c	19 Apr 2004 20:08:42 -0000	1.245
@@ -307,8 +307,8 @@
   connection_t *conn = connection_array[i];
 
   if(conn->type == CONN_TYPE_DIR &&
-     conn->timestamp_created + 5*60 < now) {
-    log_fn(LOG_INFO,"Expiring wedged directory conn (purpose %d)", conn->purpose);
+     conn->timestamp_lastwritten + 5*60 < now) {
+    log_fn(LOG_WARN,"Expiring wedged directory conn (purpose %d)", conn->purpose);
     connection_mark_for_close(conn,0);
     conn->hold_open_until_flushed = 1; /* give it a last chance */
     return;