Open andreasdamm opened 7 years ago
@andreasdamm is there any attached code for this still?
Just what is in the issue description. To reproduce the error, use the UnixSocketChannel class and instead of "return false" in DoConnect, return the value of "base.DoConnect(...)".
Also, the original descriotion should have said that the connection succeeds immediately, and DoConnect returns true.
When using UnixEndPoint under Mono on Linux, TcpSocketChannel never becomes active after a call to connect. The reason appears to be that the connection succeeds immediately, on DoConnect returns false.
When creating a subclass (see attached code) which always returns false, then all is well. Also, when TcpSocketChannel tries to create a Socket, it always provides ProtocolType.IPv6. For unix domain sockets that needs to be ProtocolType.Unspecified otherwise an exception is thrown.