aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2002-10-01 05:46:48 +0000
committerRoger Dingledine <arma@torproject.org>2002-10-01 05:46:48 +0000
commit293e049a89867cc8a066fec6f9c2abce4aafa5b3 (patch)
tree2f8f1087043a9c21717a7fbcfed2458feacb71ec /src
parent827c7444f8c6759388e8b137d98c740dc3d5eae7 (diff)
downloadtor-293e049a89867cc8a066fec6f9c2abce4aafa5b3.tar
tor-293e049a89867cc8a066fec6f9c2abce4aafa5b3.tar.gz
handle banners from the server side
(text that it spits out immediately upon connect) svn:r124
Diffstat (limited to 'src')
-rw-r--r--src/or/connection_exit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/or/connection_exit.c b/src/or/connection_exit.c
index 5f79b64e2..b69cf3541 100644
--- a/src/or/connection_exit.c
+++ b/src/or/connection_exit.c
@@ -53,9 +53,9 @@ int connection_exit_finished_flushing(connection_t *conn) {
if(connection_wants_to_flush(conn)) /* in case there are any queued data cells */
connection_start_writing(conn);
connection_start_reading(conn);
-
- /* also, deliver a 'connected' cell back through the circuit. */
- return connection_exit_send_connected(conn);
+ return
+ connection_exit_send_connected(conn) || /* deliver a 'connected' cell back through the circuit. */
+ connection_process_inbuf(conn); /* in case the server has written anything */
case EXIT_CONN_STATE_OPEN:
/* FIXME down the road, we'll clear out circuits that are pending to close */
connection_stop_writing(conn);
@@ -174,6 +174,7 @@ int connection_exit_process_data_cell(cell_t *cell, connection_t *conn) {
log(LOG_NOTICE,"connection_exit_process_data_cell(): tell roger: newly connected conn had data waiting!");
// connection_start_writing(conn);
}
+// connection_process_inbuf(conn);
connection_watch_events(conn, POLLIN);
/* also, deliver a 'connected' cell back through the circuit. */