-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
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
AssertionError: non-error thrown: false #3
Comments
finished module: module.exports = function (thingie, callback) {
var socket = thingie.socket || thingie
var res = thingie.res || thingie
if (!socket.writable)
return setImmediate(callback)
socket.on('error', done)
socket.on('close', done)
res.on('finish', done)
function done(err) {
socket.removeListener('error', done)
socket.removeListener('close', done)
res.removeListener('finish', done)
callback(err)
}
return thingie
} |
https://github.com/joyent/node/blob/master/lib/net.js#L461 var isException = exception ? true : false;
this._handle.close(function() {
debug('emit close');
self.emit('close', isException);
}); |
err in |
when socket close event emit, err is a Boolean |
hmmm. ping @jonathanong |
i think it should fixed in |
thingie.socket is ctx.socket, but why we need to listen error and close event? |
Already fixed this in latest finished |
same as jshttp/on-finished#1 close by jshttp/on-finished@8b2baaa |
@jonathanong Also need to update koa deps: |
is that really necessary? semver can do the work |
The text was updated successfully, but these errors were encountered: