Author Topic: TCP_EVENT_ABORT called when closing  (Read 7955 times)

Offline neil

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
TCP_EVENT_ABORT called when closing
« 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

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: TCP_EVENT_ABORT called when closing
« Reply #1 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