don't mark the helper node as down when we fail to connect to

our https proxy.


svn:r5566
This commit is contained in:
Roger Dingledine 2005-12-11 11:54:55 +00:00
parent 9c01fa3d59
commit dded1dd8bd

View File

@ -442,9 +442,12 @@ connection_or_connect(uint32_t addr, uint16_t port, const char *id_digest)
switch (connection_connect(conn, conn->address, addr, port)) {
case -1:
if (!options->HttpsProxy)
if (!options->HttpsProxy) {
/* If the connection failed immediately, our https proxy
* is down. Don't blame the Tor server. */
router_mark_as_down(conn->identity_digest);
helper_node_set_status(conn->identity_digest, 0);
helper_node_set_status(conn->identity_digest, 0);
}
control_event_or_conn_status(conn, OR_CONN_EVENT_FAILED);
connection_free(conn);
return NULL;