Home/Support/Support Forum/sock_close(): Time to fully close socket?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

sock_close(): Time to fully close socket?

0 votes
I'm using an RCM6600W with code which calls tcp_tick() just about once every 80ms.

If I establish a connection, receive a small amount of data, wait 15 seconds, and then call sock_close, I've found that waiting up to 30 seconds does not provide enough time to actually fully close the socket (ie sock_alive() still says the socket is alive after 30 seconds).

EDIT: Turns out it just takes a large amount of time for a final FIN/ACK to be sent back from the server. Over a minute.
asked Dec 1, 2016 in Rabbit Software by casey New to the Community (18 points)
edited Dec 1, 2016 by casey

Please log in or register to answer this question.

1 Answer

0 votes
 
Best answer
Turns out it just takes a large amount of time for a final FIN/ACK to be sent back from the server. Over a minute.
answered Dec 1, 2016 by casey New to the Community (18 points)
...