You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Can I ask you please to help me with ports leaking?
I prepared and attached another one simple samples (based on your chat samples and my previous forms #7 ), you may want (or may not) include them as samples in your project in the future.
This time without controls at all.
I moved the operational part to separate classes to minimize code size in the main form module.
There are 3 projects:
Client
Server
Client-Server (same as 1 + 2, merged together).
If you try to send several packets (using project # 3, or bunch of # 1 + # 2), you will see, that ports are get occupied with status "Time Wait", which is automatically free by system after ~ 120 sec. However, those should have been instantly free with Socket.Close_ method. Why it doesn't want to?
Hi,
Can I ask you please to help me with ports leaking?
I prepared and attached another one simple samples (based on your chat samples and my previous forms #7 ), you may want (or may not) include them as samples in your project in the future.
This time without controls at all.
I moved the operational part to separate classes to minimize code size in the main form module.
There are 3 projects:
If you try to send several packets (using project # 3, or bunch of # 1 + # 2), you will see, that ports are get occupied with status "Time Wait", which is automatically free by system after ~ 120 sec. However, those should have been instantly free with Socket.Close_ method. Why it doesn't want to?
Thanks a lot for your help.
Attachment: https://dragokas.com/temp/Socket-samples.zip (can't attach for some reason).
The text was updated successfully, but these errors were encountered: