Commit bcda3eba authored by Roger Dingledine's avatar Roger Dingledine
Browse files

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

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


svn:r1366
parent 7118c617
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;
}