We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restify Version: 10.0.0 Node.js Version: 18.12.1
once the response is closed or sent to the client, the "chain handler" must be terminated
The "chain handler" still continues when the response has been destroyed
case 1:
server.get('*',async(req, res) => { console.log('----first----'); res.send('first'); }, async(req, res) => { console.log('----second----'); res.send('second'); });
case 2:
server.get('*', async(req, res) => { console.log('----first----'); res.send('first'); }, (req, res, next) => { console.log('----second----'); res.send('second'); });
node-restify/lib/chain.js
Line 143 in adf24c1
yes
The text was updated successfully, but these errors were encountered:
next(false)
No branches or pull requests
Restify Version: 10.0.0
Node.js Version: 18.12.1
Expected behaviour
once the response is closed or sent to the client, the "chain handler" must be terminated
Actual behaviour
The "chain handler" still continues when the response has been destroyed
Repro case
case 1:
case 2:
Cause
node-restify/lib/chain.js
Line 143 in adf24c1
Are you willing and able to fix this?
yes
The text was updated successfully, but these errors were encountered: