Jump to content

Recommended Posts

Posted

Good Morning to all,

I'm working on a TCP connection and sometimes I need close it and reopen successively.

When I close connection and Close is done I cannot view the correct TCP status because it remain ESTABLISHED. 

Why it could be happen?

Waiting for your answer, 

Thank you, Mariangela

Posted

By standard, there are long timeouts for TCP sessions after close before the ports can be re-used.  There's a socket option that can be used when creating a socket to permit immediate re-use after close.  Please show your code for how you are creating your connection.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...