9 lines
275 B
Python
9 lines
275 B
Python
import socket, time
|
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
t0 = time.time()
|
|
s.connect(('192.168.1.100', 8080))
|
|
print('connected, holding silently for 95s (Phase 11 keepalive)')
|
|
time.sleep(95)
|
|
print('hold done, closing at %.1fs' % (time.time() - t0))
|
|
s.close()
|