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
When no interface is attached (connector) its not possible to read/write from/to the upstream.
How about to attach a event listener to the interface and backpressure the request till the interface has a attached upstream/is bridged?
Pseudo code/draft (class.interface.js)
agent.createConnection=(options,cb)=>{letinput=newPassThrough();letoutput=newPassThrough();this.stream.pipe(input,{end: false});output.pipe(this.stream,{end: false});letsocket=Duplex.from({readable: input,writable: output});// TODO implement other socket functions?!if(process.env.NODE_ENV!=="production"){socket.ref=(...args)=>{console.log("socket.ref called", ...args);};socket.unref=(...args)=>{console.log("socket.unref called", ...args);};socket.setKeepAlive=(...args)=>{console.log("socket.setKeepAlive called", ...args);};socket.setTimeout=(...args)=>{console.log("socket.setTimeout called", ...args);};socket.setNoDelay=(...args)=>{console.log("socket.setNoDelay called", ...args);};// socket.remoteAddress=this.settings.host// socket.remotePort=this.settings.port}// pseude code. "attached" does not existsif(this.stream.attached){cb(null,socket);return;}this.stream.once("attached",()=>{//return socket;cb(null,socket);});};
Does the request timeout when the callback not get called for a long time?
The text was updated successfully, but these errors were encountered:
When no interface is attached (connector) its not possible to read/write from/to the upstream.
How about to attach a event listener to the interface and backpressure the request till the interface has a attached upstream/is bridged?
Pseudo code/draft (class.interface.js)
Does the request timeout when the callback not get called for a long time?
The text was updated successfully, but these errors were encountered: