Rename ManageConnections to LeaveStreamsUnattached. Apparently, there was a missing "TorShould" that was mistaken for an "IWantTo".

svn:r3894
This commit is contained in:
Nick Mathewson 2005-03-27 06:25:33 +00:00
parent ee24166851
commit ce854906db
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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);
@ -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 {

View File

@ -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;