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
Searched both open and closed issues for duplicates of this issue
Title adequately and concisely reflects the feature or the bug
Bug Report
Restify Version
Tested on 8.3.0.
Node.js Version
Tested on v8.15.1.
Expected behaviour
Restify should not hang (in express this same case automatically 404s)
Actual behaviour
Restify hangs
Repro case
constrestify=require('restify');constserver=restify.createServer();server.get('/',(req,res,next)=>next());// also could be server.get('/', () => {});server.listen(8080,()=>console.log('Server up on port 8080'));
Cause
Restify does not detect cases where the middleware chain is completed and no response has been flushed.
Are you willing and able to fix this?
Yes
The text was updated successfully, but these errors were encountered:
Express uses https://github.com/pillarjs/finalhandler at the end of the middleware chain. It does a check to see if headers have started being flushed yet as a heuristic.
Bug Report
Restify Version
Tested on 8.3.0.
Node.js Version
Tested on v8.15.1.
Expected behaviour
Restify should not hang (in express this same case automatically 404s)
Actual behaviour
Restify hangs
Repro case
Cause
Restify does not detect cases where the middleware chain is completed and no response has been flushed.
Are you willing and able to fix this?
Yes
The text was updated successfully, but these errors were encountered: