bugfix: we were closing socks-request connections immediately, rather

than flushing them, if they were timing out before we marked them


svn:r1366
This commit is contained in:
Roger Dingledine 2004-03-29 20:04:09 +00:00
parent 7118c6177d
commit bcda3ebaef

View File

@ -224,6 +224,12 @@ _connection_mark_for_close(connection_t *conn, char reason)
;
}
conn->marked_for_close = 1;
/* in case we're going to be held-open-til-flushed, reset
* the number of seconds since last successful write, so
* we get our whole 15 seconds */
conn->timestamp_lastwritten = time(NULL);
return retval;
}