News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
Unexpected behavious on a multiprocessor machine  
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

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.