]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Remove misleading function comment (bug 5324)
authorRoger Dingledine <arma@torproject.org>
Thu, 8 Mar 2012 02:07:30 +0000 (21:07 -0500)
committerRoger Dingledine <arma@torproject.org>
Thu, 8 Mar 2012 02:07:30 +0000 (21:07 -0500)
In the distant past, connection_handle_read() could be called when there
are pending bytes in the TLS object during the main loop. The design
since then has been to always read all pending bytes immediately, so
read events only trigger when the socket actually has bytes to read.

Resolves bug 5324.

src/or/connection.c

index 06a75626567c0754c6276416e17336ba14750dcb..cbc6091e378c78e002018754df30e22c4f42563f 100644 (file)
@@ -2594,10 +2594,6 @@ connection_consider_empty_read_buckets(connection_t *conn)
 #endif
 
 /** Read bytes from conn-\>s and process them.
- *
- * This function gets called from conn_read() in main.c, either
- * when poll() has declared that conn wants to read, or (for OR conns)
- * when there are pending TLS bytes.
  *
  * It calls connection_read_to_buf() to bring in any new bytes,
  * and then calls connection_process_inbuf() to process them.