Mariangela Camarda Posted June 14, 2023 Report Posted June 14, 2023 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 Quote
pturmel Posted June 14, 2023 Report Posted June 14, 2023 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. Quote
Recommended Posts
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.