mirror of
https://github.com/tun2proxy/tun2proxy.git
synced 2025-06-19 07:30:54 +00:00
Add manual tests for half open connections
This commit is contained in:
parent
2cf7c9cdea
commit
70cea8e11f
5 changed files with 55 additions and 1 deletions
12
tests/manual-tests/half-open-close-server/client.py
Normal file
12
tests/manual-tests/half-open-close-server/client.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import socket
|
||||
import time
|
||||
|
||||
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
|
||||
s.connect(('116.203.215.166', 1337))
|
||||
while True:
|
||||
data = s.recv(1024)
|
||||
if not data:
|
||||
break
|
||||
print(data.decode())
|
||||
time.sleep(3)
|
||||
s.sendall('Message after server write end close'.encode())
|
Loading…
Add table
Add a link
Reference in a new issue