Hi,
This may be an issue with our code, but I just wanted to check if there's any known issue with disposing of a connection.
When clsoing an SFTP connection, the following messages appear in our logs:
2012-07-19 12:35:48,323 [17] [(null)] [(null)] [(null)] ERROR EnterpriseDTLog - Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult, SocketError& errorCode)
at System.Net.Sockets.Socket.EndReceive(IAsyncResult asyncResult)
at Xv8GsRCUgatLkTL5nv.UHGbK3YUXY0VkrdBfY.X5yeGsgxjY(IAsyncResult )
The code being used to dispose of the object is as follows:
if (ftpClient.IsConnected)
{
// Shut down client
if (log.IsDebugEnabled) log.Debug("Quitting client");
try
{
ftpClient.Dispose();
}
catch (Exception e)
{
log.Warn("Error on DisConnect -- ignoring ", e);
}
}
Thanks