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