fix graceful restart and add unit test

This commit is contained in:
clowwindy 2015-08-02 14:37:44 +08:00
parent e8b2946999
commit 111acf66c1
8 changed files with 121 additions and 9 deletions

18
tests/graceful_cli.py Normal file
View file

@ -0,0 +1,18 @@
#!/usr/bin/python
import socket
import socks
import time
SERVER_IP = '127.0.0.1'
SERVER_PORT = 8001
if __name__ == '__main__':
s = socks.socksocket()
s.set_proxy(socks.SOCKS5, SERVER_IP, 1081)
s.connect((SERVER_IP, SERVER_PORT))
s.send(b'test')
time.sleep(30)
s.close()