Description:
I am using Visual Studio 2005b2 with .NET 2.0, I looked at your bug report posted previously regarding worker threads and decided to try and code a fix for this, removing the asynchronous socket code and using regular sockets. Before I chose to do this, when the code was executed/debugged within the VS IDE it would run perfectly, but when compiled with Mono 1.1.8 or Compiled and executed outside of the IDE, all I would get is the error msg. After changing the code, all I get now is the same error msg, but even within the debugger.
I also tried checking the source tree for 1.0.5 where you said you fixed this, any reason its not available on the source tree or am I not looking in the right area?
How to repeat:
I am using Visual Studio 2005b2 with .NET 2.0, I looked at your bug report posted previously regarding worker threads and decided to try and code a fix for this, removing the asynchronous socket code and using regular sockets. Before I chose to do this, when the code was executed/debugged within the VS IDE it would run perfectly, but when compiled with Mono 1.1.8 or Compiled and executed outside of the IDE, all I would get is the error msg. After changing the code, all I get now is the same error msg, but even within the debugger.
I replaced the code as follows:
private Stream CreateSocketStream( IPAddress ip, int port )
{
Socket socket = new Socket(AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
I replaced the code as follows:
try
{
//
// Lets try to connect
IPEndPoint endPoint = new IPEndPoint( ip, port);
socket.Connect(endPoint);
socket.Blocking = false;
socket.SetSocketOption( SocketOptionLevel.Tcp, SocketOptionName.NoDelay, 1 );
return new NetworkStream( socket, true );
}
catch (Exception)
{
return null;
}
}