]> git.ipfire.org Git - thirdparty/tor.git/commit
Implemented congestion control
authorRoger Dingledine <arma@torproject.org>
Thu, 18 Jul 2002 06:37:58 +0000 (06:37 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 18 Jul 2002 06:37:58 +0000 (06:37 +0000)
commit267434bdeac40a2ccc2677119ddc1925b80c0c4c
tree27ce149ec317584dddb923f8e7fd4544baf59d15
parentccdef66b68a2f61dfe600fddafaf270537928fac
Implemented congestion control

Servers are allowed to send 100 cells initially, and can't send more until
they receive a 'sendme' cell from that direction, indicating that they
can send 10 more cells. As it currently stands, the exit node quickly
runs out of window, and sends bursts of 10 whenever a sendme cell gets
to him. This is much much much faster (and more flexible) than the old
"give each circuit 1 kB/s and hope nothing overflows" approach.

Also divided out the connection_watch_events into stop_reading,
start_writing, etc. That way we can control them separately.

svn:r54
src/or/buffers.c
src/or/circuit.c
src/or/command.c
src/or/connection.c
src/or/connection_ap.c
src/or/connection_exit.c
src/or/connection_op.c
src/or/connection_or.c
src/or/main.c
src/or/or.h