Home/Support/Support Forum/How to change socket connect function timeout value?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to change socket connect function timeout value?

0 votes
How do I change how long the socket API "connect" function waits before failing with a timeout error if the server it is attempting to connect to is not responding at all (i.e. not responding to ARPs)? Currently, it waits exactly 75 seconds which is too long for my application. The socket being used is set to blocking mode so the call to connect blocks for 75 seconds before returning. I think I could possibly set the socket to non-blocking mode and poll the socket for its connection status after calling connect and then cancel the process manually however this seems overly complicated if I can just change a timeout value somewhere. My project is using the Connect ME9210 with NET+OS 7.5 and all the latest updates.

Many thanks!
asked Jul 19, 2019 in NET+OS by mplinsen New to the Community (0 points)

Please log in or register to answer this question.

1 Answer

0 votes
you should be able to override defaults via standard socket options:
answered Jul 21, 2019 by LeonidM Veteran of the Digi Community (4,457 points)