Browse Source

Merge pull request #26 from mengskysama/patch-6

发现好多坑
master
BreakWa11 9 years ago
parent
commit
eebd5c548e
  1. 4
      shadowsocks/manager.py

4
shadowsocks/manager.py

@ -29,7 +29,7 @@ from shadowsocks import common, eventloop, tcprelay, udprelay, asyncdns, shell
BUF_SIZE = 1506
STAT_SEND_LIMIT = 100
STAT_SEND_LIMIT = 50
class Manager(object):
@ -167,6 +167,8 @@ class Manager(object):
if i >= STAT_SEND_LIMIT:
send_data(r)
r.clear()
i = 0
if len(r) > 0:
send_data(r)
self._statistics.clear()

Loading…
Cancel
Save