Use same event fin packets.

This commit is contained in:
Simo Kinnunen
2014-10-14 16:16:52 +09:00
parent ebafa3770e
commit 035acec372
2 changed files with 13 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ ForwardParser.prototype._transform = function(chunk, encoding, done) {
if (this._needLength === 0) {
// This is a fin packet
this.emit('fin', this._target)
this.emit('packet', this._target, null)
this._needLength = -HEADER_SIZE
}
}