mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
stop calling assert_connection_ok(conn, time(NULL)) on every single
conn on every single loop. svn:r3229
This commit is contained in:
parent
288f2ed59e
commit
e1ac30c2bb
@ -338,10 +338,10 @@ static void conn_close_if_marked(int i) {
|
||||
int retval;
|
||||
|
||||
conn = connection_array[i];
|
||||
assert_connection_ok(conn, time(NULL));
|
||||
assert_all_pending_dns_resolves_ok();
|
||||
if (!conn->marked_for_close)
|
||||
return; /* nothing to see here, move along */
|
||||
assert_connection_ok(conn, time(NULL));
|
||||
assert_all_pending_dns_resolves_ok();
|
||||
|
||||
log_fn(LOG_INFO,"Cleaning up connection (fd %d).",conn->s);
|
||||
if (conn->s >= 0 && connection_wants_to_flush(conn)) {
|
||||
|
Loading…
Reference in New Issue
Block a user