From d949d11b281d81c0c47111537a0be649acfa471f Mon Sep 17 00:00:00 2001 From: clowwindy Date: Thu, 19 Jun 2014 10:01:55 +0800 Subject: [PATCH] larger buffer --- CHANGES | 4 ++++ setup.py | 2 +- shadowsocks/tcprelay.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index bcae1a6..85b1666 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +2.0.6 2014-06-19 +- Fix CPU 100% on POLL_HUP +- More friendly logging + 2.0.5 2014-06-18 - Support a simple config format for multiple ports diff --git a/setup.py b/setup.py index b379d22..fa7e13e 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open('README.rst') as f: setup( name="shadowsocks", - version="2.0.5", + version="2.0.6", license='MIT', description="A fast tunnel proxy that help you get through firewalls", author='clowwindy', diff --git a/shadowsocks/tcprelay.py b/shadowsocks/tcprelay.py index a789cd2..10f73d6 100644 --- a/shadowsocks/tcprelay.py +++ b/shadowsocks/tcprelay.py @@ -74,7 +74,7 @@ WAIT_STATUS_READING = 1 WAIT_STATUS_WRITING = 2 WAIT_STATUS_READWRITING = WAIT_STATUS_READING | WAIT_STATUS_WRITING -BUF_SIZE = 8 * 1024 +BUF_SIZE = 32 * 1024 class TCPRelayHandler(object):