]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
hold socks reply open until flushed (if possible)
authorRoger Dingledine <arma@torproject.org>
Sun, 28 Mar 2004 09:48:21 +0000 (09:48 +0000)
committerRoger Dingledine <arma@torproject.org>
Sun, 28 Mar 2004 09:48:21 +0000 (09:48 +0000)
svn:r1356

src/or/connection.c

index 75804ee02dea8e0bf8cbdd2b407f20bd8118b83d..eeb0501b1d1831b8011de6986383fcc00c2a62d8 100644 (file)
@@ -204,6 +204,7 @@ _connection_mark_for_close(connection_t *conn, char reason)
         log_fn(LOG_INFO,"Cleaning up AP -- sending socks reject.");
         connection_ap_handshake_socks_reply(conn, NULL, 0, 0);
         conn->socks_request->has_finished = 1;
+        conn->hold_open_until_flushed = 1;
       }
       /* fall through, to do things for both ap and exit */
     case CONN_TYPE_EXIT: