[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] bugfix: when you sleep your hidden-service laptop, as soon
- To: or-cvs@freehaven.net
- Subject: [or-cvs] bugfix: when you sleep your hidden-service laptop, as soon
- From: arma@seul.org (Roger Dingledine)
- Date: Fri, 16 Apr 2004 20:46:07 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Fri, 16 Apr 2004 20:46:23 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
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]);