Sign in to follow this  
Followers 0
Mariangela Camarda

TCP Connection Status

2 posts in this topic

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0