Browse Source

timeout set to 1

dev
破娃酱 8 years ago
parent
commit
e2957e672e
  1. 2
      shadowsocks/tcprelay.py

2
shadowsocks/tcprelay.py

@ -97,7 +97,7 @@ UDP_MAX_BUF_SIZE = 65536
class SpeedTester(object): class SpeedTester(object):
def __init__(self, max_speed = 0): def __init__(self, max_speed = 0):
self.max_speed = max_speed * 1024 self.max_speed = max_speed * 1024
self.timeout = 5 self.timeout = 1
self._cache = deque() self._cache = deque()
self.sum_len = 0 self.sum_len = 0

Loading…
Cancel
Save