haxe
haxe copied to clipboard
Socket flags lost after calling connect() on ipv6 address
This code in Socket.hx connect() determines if an ipv6 connection is needed. If so, it destroys the current socket and creates a new socket. In doing so, any flags that were set on the socket prior to the connect() call are lost, specifically, the flags set by these methods:
public function setTimeout( timeout : Float ) : Void {
NativeSocket.socket_set_timeout(__s, timeout);
}
public function setBlocking( b : Bool ) : Void {
NativeSocket.socket_set_blocking(__s,b);
}
public function setFastSend( b : Bool ) : Void {
NativeSocket.socket_set_fast_send(__s,b);
}
Hi, I heard you fixed the problem on your side, could you submit a Pull Request ?