Cygwin: tcp: Support TCP_KEEPIDLE, TCP_KEEPCNT, TCP_KEEPINTVL
Use WSAIoctl(SIO_KEEPALIVE_VALS) on older systems. Make sure that keep-alive timeout is equivalent to TCP_KEEPIDLE + TCP_KEEPCNT * TCP_KEEPINTVL on older systems, even with TCP_KEEPCNT being a fixed value on those systems. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -41,6 +41,7 @@ struct wincaps
|
||||
unsigned has_con_esc_rep : 1;
|
||||
unsigned has_extended_mem_api : 1;
|
||||
unsigned has_tcp_fastopen : 1;
|
||||
unsigned has_linux_tcp_keepalive_sockopts : 1;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -105,6 +106,7 @@ public:
|
||||
bool IMPLEMENT (has_con_esc_rep)
|
||||
bool IMPLEMENT (has_extended_mem_api)
|
||||
bool IMPLEMENT (has_tcp_fastopen)
|
||||
bool IMPLEMENT (has_linux_tcp_keepalive_sockopts)
|
||||
|
||||
void disable_case_sensitive_dirs ()
|
||||
{
|
||||
|
Reference in New Issue
Block a user