Skip to content

Commit

Permalink
Merge pull request #52 from grmocg/master
Browse files Browse the repository at this point in the history
Fix for stream count decrementing for push streams
  • Loading branch information
indutny committed Jul 17, 2012
2 parents 0d52628 + 2a0195e commit 6288fad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/spdy/server.js
Expand Up @@ -420,7 +420,9 @@ Stream.prototype.destroy = function destroy(error) {
this._destroyed = true;

delete this.connection.streams[this.id];
this.connection.streamsCount--;
if (this.id % 2 === 1) {
this.connection.streamsCount--;
}

if (error) {
if (this.rstCode) {
Expand Down

0 comments on commit 6288fad

Please sign in to comment.