Ticket #12886: test.py

File test.py, 201 bytes (added by ruslanch, 9 years ago)

Test

Line 
1import socket
2
3HOST = 'localhost'
4PORT = 12345
5for i in range(0, 1000):
6    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
7    s.connect((HOST, PORT))
8    s.send(b'Hello, World')
9    s.close()
10