https://github.com/darkk/tcp_shutter
Ugly process-wide TCP socket timeout
https://github.com/darkk/tcp_shutter
Last synced: about 1 year ago
JSON representation
Ugly process-wide TCP socket timeout
- Host: GitHub
- URL: https://github.com/darkk/tcp_shutter
- Owner: darkk
- Created: 2015-03-02T17:10:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-02T17:10:42.000Z (over 11 years ago)
- Last Synced: 2025-01-28T10:28:53.183Z (over 1 year ago)
- Language: Python
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This module calls shutdown() on every TCP socket that got no packets (either
data or ACK) from the peer for the specified amount of time. It's ugly
workaround for lack of timeout options in zillion of network libraries.
shutdown() call unlocks thread that's locked on recv() or send() call.
The module is not portable and uses Linux-specific TCP_INFO structure.