Last active
April 2, 2019 17:14
-
-
Save nishidy/b1767e1ca90651a369920d0bf496fb99 to your computer and use it in GitHub Desktop.
TCP_DEFER_ACCEPT test program for client (python)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import time | |
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: | |
s.connect(('127.0.0.1', 8080)) | |
time.sleep(1) | |
s.send(b'GET / HTTP/1.1\r\nHost: localhost') | |
data = s.recv(1024) | |
print(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment