[or-cvs] bugfix: when you sleep your hidden-service laptop, as soon

Roger Dingledine arma at seul.org
Sat Apr 17 00:46:07 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	connection_edge.c 
Log Message:
bugfix: when you sleep your hidden-service laptop, as soon
as it wakes up it tries to upload a service descriptor, but
socketpair fails for some reason (localhost not up yet?)

now we simply give up on that upload, and we'll try again later.


Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_edge.c,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -d -r1.169 -r1.170
--- connection_edge.c	16 Apr 2004 14:26:23 -0000	1.169
+++ connection_edge.c	17 Apr 2004 00:46:05 -0000	1.170
@@ -1043,8 +1043,8 @@
   log_fn(LOG_INFO,"Making AP bridge to %s:%d ...",address,port);
 
   if(tor_socketpair(AF_UNIX, SOCK_STREAM, 0, fd) < 0) {
-    log(LOG_ERR, "Couldn't construct socketpair: %s", strerror(errno));
-    exit(1);
+    log(LOG_WARN, "Couldn't construct socketpair (we're still working on this bug): %s", strerror(errno));
+    return -1;
   }
 
   set_socket_nonblocking(fd[0]);



More information about the tor-commits mailing list