TCP_USER_TIMEOUT

This commit is contained in:
Boris-Barboris 2018-04-02 14:02:09 +00:00
parent cdb141ba4a
commit 322438697c
3 changed files with 52 additions and 13 deletions

View file

@ -228,6 +228,9 @@ interface EventDriverSockets {
*/
void setKeepAliveParams(StreamSocketFD socket, Duration idle, Duration interval, int probeCount = 5);
/// Sets `TCP_USER_TIMEOUT` socket option (linux only). https://tools.ietf.org/html/rfc5482
void setUserTimeout(StreamSocketFD socket, Duration timeout);
/** Reads data from a stream socket.
Note that only a single read operation is allowed at once. The caller