Don't overfill the mux's output buffer.

Otherwise a single busy stream can ruin it for everybody.
This commit is contained in:
Avery Pennarun
2010-05-02 05:06:51 -04:00
parent da06286427
commit 5d1390927d
3 changed files with 21 additions and 4 deletions

View File

@ -87,6 +87,8 @@ def _main(listener, listenport, use_server, remotename, subnets):
for s in handlers:
if s.socks & ready:
s.callback()
mux.callback()
mux.check_fullness()
def main(listenip, use_server, remotename, subnets):