Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Timeout on socket connect(): Page 1 of 14 (14 Items)
   
Timeout on socket connect()  
Hi team,

If I connect to a non-existing IP, TCP connect function will timeout only after 74 seconds. In my case, the connect 
function should timeout in milliseconds range. I tried using timer_timeout() with timeout values as 1ms,10ms,100ms etc. 
But it timeout doesn’t work, whereas timeout value if specified in seconds range works correctly. How can I shorten the
 TCP connect timeout?

Regards,
princy