µTasker Forum

µTasker Forum => µTasker general => Topic started by: neil on May 21, 2009, 01:37:31 PM

Title: TCP_EVENT_ABORT called when closing
Post by: neil on May 21, 2009, 01:37:31 PM
Hi Mark,
    If a fnTCP_close(..) is called but the server connected to doenst respond properly, is  TCP_EVENT_ABORT always called? Is the timeout value in the fnGetTCP_Socket(..) command used?

Neil
Title: Re: TCP_EVENT_ABORT called when closing
Post by: mark on May 21, 2009, 07:50:59 PM
Hi Neil

In this specific case the timeout is given by TCP_STANDARD_RETRY_TOUT (3s) as defined in tcpip.h.
If the first close request is not answered it will try once more  (resending the FIN).
Should there still be no answer after the second TCP_STANDARD_RETRY_TOUT delay it will always send an RST and close. At this point you will always get the TCP_EVENT_ABORT event to signal that this has happened.

Regards

Mark