mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
don't crash, if a conn that sent a begin has suddenly lost its circuit
svn:r1704
This commit is contained in:
parent
f9418c05bb
commit
9e5d2ad91c
@ -620,6 +620,11 @@ void connection_ap_expire_beginning(void) {
|
||||
continue;
|
||||
conn->num_retries++;
|
||||
circ = circuit_get_by_conn(conn);
|
||||
if(!circ) { /* it's vanished? */
|
||||
log_fn(LOG_INFO,"Conn is in connect-wait, but lost its circ.");
|
||||
connection_mark_for_close(conn,0);
|
||||
continue;
|
||||
}
|
||||
if(circ->purpose == CIRCUIT_PURPOSE_C_REND_JOINED) {
|
||||
if (now - conn->timestamp_lastread > 45) {
|
||||
log_fn(LOG_WARN,"Rend stream is %d seconds late. Giving up.",
|
||||
|
Loading…
Reference in New Issue
Block a user