Skip to content
Snippets Groups Projects
Commit a43db78e authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Resolve FIXME items: make the kill-unattached-AP timeout symbolic

svn:r2793
parent c9af37d1
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,9 @@
#include "or.h"
/** Longest time to wait for a circuit before closing an AP connection */
#define CONN_AP_MAX_ATTACH_DELAY 60
/********* START VARIABLES **********/
extern circuit_t *global_circuitlist; /* from circuitlist.c */
......@@ -764,8 +767,7 @@ int connection_ap_handshake_attach_circuit(connection_t *conn) {
tor_assert(conn->socks_request);
conn_age = time(NULL) - conn->timestamp_created;
if(conn_age > 60) {
/* XXX make this cleaner than '60' */
if(conn_age > CONN_AP_MAX_ATTACH_DELAY) {
log_fn(LOG_WARN,"Giving up on unattached conn (%d sec old).", conn_age);
return -1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment