]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix: when you sleep your hidden-service laptop, as soon
authorRoger Dingledine <arma@torproject.org>
Sat, 17 Apr 2004 00:46:05 +0000 (00:46 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 17 Apr 2004 00:46:05 +0000 (00:46 +0000)
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.

svn:r1646

src/or/connection_edge.c

index 43bf6d52e881cf38f74854ca7bffd9e0e500ee4e..2b8ab08ea2eb4bea984642da7ff7b48be4d3da80 100644 (file)
@@ -1043,8 +1043,8 @@ int connection_ap_make_bridge(char *address, uint16_t port) {
   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]);