Loading src/or/config.c +1 −1 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ static config_var_t config_vars[] = { VAR("SysLog", LINELIST_S, OldLogOptions, NULL), OBSOLETE("TrafficShaping"), VAR("User", STRING, User, NULL), VAR("__ManageConnections", BOOL, ManageConnections, "1"), VAR("__LeaveStreamsUnattached", BOOL,LeaveStreamsUnattached, "0"), { NULL, CONFIG_TYPE_OBSOLETE, 0, NULL } }; #undef VAR Loading src/or/connection_edge.c +2 −2 Original line number Diff line number Diff line Loading @@ -385,7 +385,7 @@ connection_ap_detach_retriable(connection_t *conn, circuit_t *circ) { control_event_stream_status(conn, STREAM_EVENT_FAILED_RETRIABLE); conn->timestamp_lastread = time(NULL); if (get_options()->ManageConnections) { if (! get_options()->LeaveStreamsUnattached) { conn->state = AP_CONN_STATE_CIRCUIT_WAIT; circuit_detach_stream(circ,conn); return connection_ap_handshake_attach_circuit(conn); Loading Loading @@ -939,7 +939,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) { rep_hist_note_used_port(socks->port, time(NULL)); /* help predict this next time */ control_event_stream_status(conn, STREAM_EVENT_NEW); } if (get_options()->ManageConnections) { if (! get_options()->LeaveStreamsUnattached) { conn->state = AP_CONN_STATE_CIRCUIT_WAIT; return connection_ap_handshake_attach_circuit(conn); } else { Loading src/or/or.h +3 −3 Original line number Diff line number Diff line Loading @@ -1063,9 +1063,9 @@ typedef struct { * the control system. */ int CookieAuthentication; /**< Boolean: do we enable cookie-based auth for * the control system? */ int ManageConnections; /**< Boolean: Does Tor attach new connections to * circuits itself (1), or does it let the controller * deal? (0) */ int LeaveStreamsUnattached; /**< Boolean: Does Tor attach new streams to * circuits itself (0), or does it expect a controller * to cope? (1) */ int ShutdownWaitLength; /**< When we get a SIGINT and we're a server, how * long do we wait before exiting? */ } or_options_t; Loading Loading
src/or/config.c +1 −1 Original line number Diff line number Diff line Loading @@ -174,7 +174,7 @@ static config_var_t config_vars[] = { VAR("SysLog", LINELIST_S, OldLogOptions, NULL), OBSOLETE("TrafficShaping"), VAR("User", STRING, User, NULL), VAR("__ManageConnections", BOOL, ManageConnections, "1"), VAR("__LeaveStreamsUnattached", BOOL,LeaveStreamsUnattached, "0"), { NULL, CONFIG_TYPE_OBSOLETE, 0, NULL } }; #undef VAR Loading
src/or/connection_edge.c +2 −2 Original line number Diff line number Diff line Loading @@ -385,7 +385,7 @@ connection_ap_detach_retriable(connection_t *conn, circuit_t *circ) { control_event_stream_status(conn, STREAM_EVENT_FAILED_RETRIABLE); conn->timestamp_lastread = time(NULL); if (get_options()->ManageConnections) { if (! get_options()->LeaveStreamsUnattached) { conn->state = AP_CONN_STATE_CIRCUIT_WAIT; circuit_detach_stream(circ,conn); return connection_ap_handshake_attach_circuit(conn); Loading Loading @@ -939,7 +939,7 @@ static int connection_ap_handshake_process_socks(connection_t *conn) { rep_hist_note_used_port(socks->port, time(NULL)); /* help predict this next time */ control_event_stream_status(conn, STREAM_EVENT_NEW); } if (get_options()->ManageConnections) { if (! get_options()->LeaveStreamsUnattached) { conn->state = AP_CONN_STATE_CIRCUIT_WAIT; return connection_ap_handshake_attach_circuit(conn); } else { Loading
src/or/or.h +3 −3 Original line number Diff line number Diff line Loading @@ -1063,9 +1063,9 @@ typedef struct { * the control system. */ int CookieAuthentication; /**< Boolean: do we enable cookie-based auth for * the control system? */ int ManageConnections; /**< Boolean: Does Tor attach new connections to * circuits itself (1), or does it let the controller * deal? (0) */ int LeaveStreamsUnattached; /**< Boolean: Does Tor attach new streams to * circuits itself (0), or does it expect a controller * to cope? (1) */ int ShutdownWaitLength; /**< When we get a SIGINT and we're a server, how * long do we wait before exiting? */ } or_options_t; Loading