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

[or-cvs] Stop complaining loudly whenever some poor client falls off



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 complaining loudly whenever some poor client falls off
the network before we finish writing to him.


Index: main.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/main.c,v
retrieving revision 1.614
retrieving revision 1.615
diff -u -p -d -r1.614 -r1.615
--- main.c	11 Jan 2006 22:34:07 -0000	1.614
+++ main.c	23 Jan 2006 09:23:04 -0000	1.615
@@ -482,6 +482,7 @@ conn_close_if_marked(int i)
     if (connection_wants_to_flush(conn)) {
       int severity;
       if (conn->type == CONN_TYPE_EXIT ||
+          (conn->type == CONN_TYPE_OR && server_mode(get_options())) ||
           (conn->type == CONN_TYPE_DIR && conn->purpose == DIR_PURPOSE_SERVER))
         severity = LOG_INFO;
       else
@@ -786,6 +787,8 @@ run_scheduled_events(time_t now)
 
     /* Only caches actually need to fetch directories now. */
     if (options->DirPort && !options->V1AuthoritativeDir) {
+      /* XXX actually, we should only do this if we want to advertise
+       * our dirport. not simply if we configured one. -RD */
       directory_get_from_dirserver(DIR_PURPOSE_FETCH_DIR, NULL, 1);
     }