An open API service indexing awesome lists of open source software.

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

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.