I searched a bit and cannot find the answer I'm looking for, the only answers I could find were to use select to check if the socket was expiring, which I already do.
What do I want to know, one way or another, to change the time before connect() will time out? I am currently using select() , which returns with errno set to EINPROGRESS until it returns with ETIMEDOUT . Anyway, can I change the amount of time it takes before ETIMEDOUT happens? Currently, this happens after about 60 seconds. I tried to set the timeout value that I pass to the select() call, however this only affects how long it takes before the select() time select() .
source share