-
Notifications
You must be signed in to change notification settings - Fork 195
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
Fix memory leak caused by misfiring callback #287
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,4 +91,3 @@ exports.everyConfig = function everyConfig(body) { | |
}); | ||
}); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,10 +115,12 @@ describe('SPDY Server', function() { | |
assert.equal(req.method, 'POST'); | ||
assert.equal(req.url, '/post'); | ||
|
||
res.writeHead(200, { | ||
ok: 'yes' | ||
}); | ||
res.end('response'); | ||
setTimeout(function() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not my proudest moment, but it was either this or introducing a nested Also, it was only the HTTP/2 tests that were failing. The SPDY tests were working fine. |
||
res.writeHead(200, { | ||
ok: 'yes' | ||
}); | ||
res.end('response'); | ||
}, 10); | ||
|
||
fixtures.expectData(req, 'request', next); | ||
}); | ||
|
@@ -207,18 +209,20 @@ describe('SPDY Server', function() { | |
assert.equal(req.method, 'POST'); | ||
assert.equal(req.url, '/page'); | ||
|
||
res.writeHead(200, { | ||
ok: 'yes' | ||
}); | ||
setTimeout(function() { | ||
res.writeHead(200, { | ||
ok: 'yes' | ||
}); | ||
|
||
var push = res.push('/push', { | ||
request: { | ||
yes: 'push' | ||
} | ||
}); | ||
push.end('push'); | ||
var push = res.push('/push', { | ||
request: { | ||
yes: 'push' | ||
} | ||
}); | ||
push.end('push'); | ||
|
||
res.end('response'); | ||
res.end('response'); | ||
}, 10); | ||
|
||
fixtures.expectData(req, 'request', next); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yikes, good catch!