haxe icon indicating copy to clipboard operation
haxe copied to clipboard

Socket flags lost after calling connect() on ipv6 address

Open realcraig opened this issue 7 years ago • 1 comments

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);
   }

realcraig avatar Mar 12 '19 23:03 realcraig

Hi, I heard you fixed the problem on your side, could you submit a Pull Request ?

ncannasse avatar Mar 13 '19 04:03 ncannasse