Bug #12626 Can't connect to specified MySQL hosts
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;
}
}
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.051 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
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; } }