You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a bit confusing for me. The comments for ClientRequest._deferToConnect says:
This function is for calls that need to happen once the socket is connected and writable.
However, looking at the code it is enough for the socket to be writable.
constonSocket=()=>{if(this.socket.writable){// assert(!this.socket.connecting); This could failcallSocketMethod();}else{this.socket.once('connect',callSocketMethod);}};
Which does not have to mean that the socket is connected.
As is evident in Socket.connect where writable and connecting is both set to true.
this.connecting=true;this.writable=true;
Is this a potential bug or just confusing description?
The text was updated successfully, but these errors were encountered:
This is a bit confusing for me. The comments for
ClientRequest._deferToConnect
says:However, looking at the code it is enough for the socket to be
writable
.Which does not have to mean that the socket is connected.
As is evident in
Socket.connect
wherewritable
andconnecting
is both set to true.Is this a potential bug or just confusing description?
The text was updated successfully, but these errors were encountered: