conn-tools
Software
www.skarnet.org

The timeoutcat program

timeoutcat copies its stdin to its stdout, until either it receives a request to close or a certain amount of time elapses without data being available.

Interface

     timeoutcat timeout fdcontrol