[CLUE-Tech] Linux TCP sockets SYN -> long delay waiting for tcp_syn_retries

Angelo Bertolli angelo at freeshell.org
Fri Oct 1 23:51:24 MDT 2004


http://www.secinf.net/unix_security/Programming_UNIX_Sockets_in_C__Frequently_Asked_Questions/Writing_Client_Applications_TCPSOCK_STREAM.html

3.5 How can I set the timeout for the connect() system call?

Also, I looked through some personal code, and I noticed that when I 
wanted to set my own timeout, I used non-blocking receives with fcntl


>Can anyone with SOCK_STREAM socket programming experience suggest 
>what we can do to make the TCP timeout be 10 seconds or less for 
>connection attempts to closed services (RST received for every SYN)?
>
>  
>



More information about the clue-tech mailing list