by Alfonso Ferrandez [alfonso dot ferrandez at ntlworld dot com] posted on 2005/06/02 |
|
Hi there,
we have a piece of code which is based on your sample FTP proxy but with SSL encryption added via SecureSockets. When we run it on a single processor machine, a standard download from Server to Client is always successful.
However, when the same code is executed in a 4-way machine, the files are always truncated early. We have narrowed down the issue to the code where the proxy's OnClientSent() calling the DestinationSocket.BeginReceive() method. At this point an exception is raised informing us that the FTP Server has closed the connection (and it does this because it sends all the bytes to the proxy). Obviously we can't retrieve these bytes anymore since the socket is no longer connected.
Has anybody come across this situation before and/or does anybody know how to retrieve the missing bytes from a Socket even when the Socket is no longer connected? We know the FTP Server has sent all the bytes, but where are they after the listening socket in the proxy is disconnected?
Thanks!
Alfonso |