- Python 3.6.9
pz@asus:~/snippets/urllib-timeout $ python3 urllib_check.py
Test server send bytes at one moment, with timeout 1.
b'1234567890'
Duration: 0.0029508500010706484
Test server send 1 byte per 0.5 sec, with timeout 1.
b'1234567890'
Duration: 13.017826942999818
Test server send 1 bytes per 2 sec for total 10 bytes (56 sec long), with timeout 10.