Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.0k views
in .NET FTP by (120 points)
Hi.

I

2 Answers

0 votes
by
I expect that it does have to do with socket reuse. Sockets go into a TIME_WAIT state after they're closed and remain in this state for quite a while. If you open and close too many sockets in too short of time you will run out of available sockets, so putting in a sleep reduces this problem. To investigate this further try using TCPView (if you're on the Windows platform).

- Hans (EDT)
0 votes
by
Thanks for you reply.

Even if i try to download just two files the problem still exists. Getting two sockets should not be a problem. I also doubt that sleeping one millisecond would be enough for TIME_WAIT to release the socket, isnt the default value for TIME_WAIT one or two seconds?

I

Categories

...