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
{{ message }}
Repository navigation
net: write(cb) not called if destroy():ed before 'connect' #30841
changed the title [-]net: `write(cb)` not called if `destroy()`:ed before 'connect'[/-][+]net: `write(cb)` not called if `destroy()`:ed before `'connect'`[/+]on Dec 7, 2019
Activity
[-]net: write(cb) not called if destroyed[/-][+]net: `write(cb)` not called if `destroy()`:ed before 'connect'[/+][-]net: `write(cb)` not called if `destroy()`:ed before 'connect'[/-][+]net: `write(cb)` not called if `destroy()`:ed before `'connect'`[/+]ronag commentedon Jan 3, 2020
This is fixed
lpinca commentedon Jan 5, 2020
If the expectation is that callback is called this is not fixed.
ronag commentedon Jan 5, 2020
Yea, we should add a test for that.
This seems related to the whole
constructingstate which in this case never gets resolved, i.e._writenever finishes https://github.com/nodejs/node/blob/master/lib/net.js#L763. I can dig into this once/if #29656 lands.lpinca commentedon Jan 5, 2020
yes,
_writeGeneric()is never called as'connect'is never emitted.ronag commentedon Jan 6, 2020
pending resolution to discussion in #31179
ronag commentedon Apr 19, 2020
ronag commentedon Apr 19, 2020
This requires #29656 in order to be fully resolved.