aboutsummaryrefslogtreecommitdiff
path: root/src/or/router.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-07-25 18:34:14 -0400
committerNick Mathewson <nickm@torproject.org>2012-08-17 16:01:30 -0400
commitd9746bd468f551d1ada57d962b20eddd15256ce9 (patch)
tree19bd19b957c825063431944d3dafe5c2e06c1f8b /src/or/router.c
parenta9d56289ee53da6aa98a0c8b89796b7872ff6e1a (diff)
downloadtor-d9746bd468f551d1ada57d962b20eddd15256ce9.tar
tor-d9746bd468f551d1ada57d962b20eddd15256ce9.tar.gz
Remove needless flush-on-write code.
Long ago, before we had cell queues, it was necessary to maybe call connection_handle_write() from connectino_write_to_buf_impl() on OR connections, so that we wouldn't get into a loop of reading infinite amounts of data and queueing it all on an outbuf before bothering to write any data. If that doesn't sounds like what our code does now, you're right: right now, we won't stick more than OR_CONN_HIGHWATER bytes of cells on an outbuf, and we won't suck more than CELL_QUEUE_HIGHWATER_SIZE cells off any edge connection. So, there's no more call for that code. Removing this code will simplify our data flow, and that should be something we can all get behind.
Diffstat (limited to 'src/or/router.c')
0 files changed, 0 insertions, 0 deletions