[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] when alice uses a port that the hidden service doesn"t acce...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] when alice uses a port that the hidden service doesn"t acce...
- From: arma@seul.org (Roger Dingledine)
- Date: Fri, 16 Apr 2004 09:49:16 -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 09:49:33 -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:
when alice uses a port that the hidden service doesn't accept,
it now sends back an end cell (denied by exit policy). otherwise
alice would just have to wait to time out.
Index: connection_edge.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_edge.c,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -d -r1.167 -r1.168
--- connection_edge.c 16 Apr 2004 08:49:14 -0000 1.167
+++ connection_edge.c 16 Apr 2004 13:49:14 -0000 1.168
@@ -1175,8 +1175,8 @@
assert(n_stream->rend_query[0]);
assert_circuit_ok(circ);
if(rend_service_set_connection_addr_port(n_stream, circ) < 0) {
- log_fn(LOG_WARN,"Didn't find rendezvous service (port %d)",n_stream->port);
- connection_mark_for_close(n_stream,0 /* XXX */);
+ log_fn(LOG_INFO,"Didn't find rendezvous service (port %d)",n_stream->port);
+ connection_mark_for_close(n_stream, END_STREAM_REASON_EXITPOLICY);
return 0;
}
assert_circuit_ok(circ);