fix manger bug
This commit is contained in:
parent
7c08101ce8
commit
6683dfd3bb
1 changed files with 4 additions and 2 deletions
|
@ -29,7 +29,7 @@ from shadowsocks import common, eventloop, tcprelay, udprelay, asyncdns, shell
|
||||||
|
|
||||||
|
|
||||||
BUF_SIZE = 1506
|
BUF_SIZE = 1506
|
||||||
STAT_SEND_LIMIT = 100
|
STAT_SEND_LIMIT = 50
|
||||||
|
|
||||||
|
|
||||||
class Manager(object):
|
class Manager(object):
|
||||||
|
@ -167,6 +167,8 @@ class Manager(object):
|
||||||
if i >= STAT_SEND_LIMIT:
|
if i >= STAT_SEND_LIMIT:
|
||||||
send_data(r)
|
send_data(r)
|
||||||
r.clear()
|
r.clear()
|
||||||
|
i = 0
|
||||||
|
if len(r) > 0:
|
||||||
send_data(r)
|
send_data(r)
|
||||||
self._statistics.clear()
|
self._statistics.clear()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue