Open jsha opened 9 years ago
Also, this is on Node v0.10.25. FWIW, I ran into a similar issue with yakaa
, the backport of Node v0.12's agent, because of the difference between socket.destroyed
vs socket._destroyed
: https://github.com/newrelic/yakaa/pull/2
I just tested on Node v0.12.4, and the error reproduces on that version as well.
Found a simple reproduction for this bug. Both of these tests will fail.
This test goes in /test/connection.js, under describe(connection.js) -> describe(testScenario). You should see the same stack trace
describe('Should not PING after GOAWAY', function () {
it('server sends GOAWAY', function (done) {
s.close();
c.ping(function () {
done();
});
});
it('client sends GOAWAY', function (done) {
c.close();
c.ping(function () {
done();
});
});
});
});
When using the node-http2 client against Twitter's API server, I get an error when the server shuts down the open connection after 15 idle minutes.
Steps to reproduce:
Edit
example/client.js
to add as the last line:setTimeout("", 60 * 20 * 1000);
Then run:
HTTP2_LOG=trace node example/client.js https://api.twitter.com/robots.txt
The error is:
Full trace output below: