I have I client application, this application communicates through a socket with the server. The problem I'm having is that I can't do two long time requests to the server, i.e.:
Request n°1 : send me an image (400kb)
While this is in execution:
Request n°2 : send me another image (10k)

At this point my program hangs up, because the socket is in use by the first request, but as the second request waits for an answer, it gets the answer that is for the 1st request... And it hangs...
Any ideas how to deal with this problems?

Thx very much.
Xmas