Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionAnna Khaitovich
2019-08-20 08:27:56 UTC
Description of problem:
Refer to this issue [1] for more info.
[1] https://github.com/spdy-http2/node-spdy/issues/350
Version-Release number of selected component (if applicable):
nodejs-12.4.0-1.module+el8.1.0+3505+d278616f.x86_64
How reproducible:
Always
Steps to Reproduce:
$ rpm -qa nodejs
nodejs-12.4.0-1.module+el8.1.0+3505+d278616f.x86_64
$ npm list
/mnt/tests/CoreOS/nodejs/Sanity/spdy-smoke
└─┬ spdy.1 -> /usr/lib/node_modules/spdy
├── debug.1 extraneous
├── handle-thing.0 extraneous
├── http-deceiver.7 extraneous
├── select-hose.0 extraneous
└── spdy-transport.0 extraneous
$ cat server.js
var spdy = require('spdy'),
fs = require('fs');
var options = {
key: fs.readFileSync('./server-key.pem'),
cert: fs.readFileSync('./server-cert.pem'),
windowSize: 1024, // Server's window size
};
var server = spdy.createServer(options, function(req, res) {
res.writeHead(200);
var is_spdy = "false"
if (req.isSpdy) { is_spdy = req.isSpdy.toString() }
console.log("isSpdy: " + is_spdy);
res.end('ok');
});
server.listen(8000);
$ cat client.js
var spdy = require('spdy'),
http = require('http'),
assert = require('assert');
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
var port = 8000;
var agent = spdy.createAgent({
host: 'localhost',
port: port
});
http.get({
protocol: 'https:',
host: 'localhost',
path: '/',
port: port,
agent: agent
}, function(response) {
assert.equal(response.statusCode, 200);
response.on('data', function(data) {
assert.equal(data.toString(), 'ok');
agent.close();
process.exit(0);
});
}).end();
$ nohup node server.js &
$ node client.js
(node:22072) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(node:22072) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
events.js:177
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:183:27)
Emitted 'error' event at:
at Connection.<anonymous> (/usr/lib/node_modules/spdy/lib/spdy/agent.js:149:12)
at Connection.emit (events.js:200:13)
at TLSSocket.onSocketError (/usr/lib/node_modules/spdy/node_modules/spdy-transport/lib/spdy-transport/connection.js:176:10)
at TLSSocket.emit (events.js:205:15)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at processTicksAndRejections (internal/process/task_queues.js:84:9) {
errno: 'ECONNRESET',
code: 'ECONNRESET',
syscall: 'read'
}
[1]+ Exit 1 nohup node server.js
Actual results:
$ cat nohup.out
isSpdy: true
(node:11783) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
internal/buffer.js:941
class FastBuffer extends Uint8Array {}
^
RangeError: Invalid typed array length: -4095
at new Uint8Array (<anonymous>)
at new FastBuffer (internal/buffer.js:941:1)
at Handle.onStreamRead [as onread] (internal/stream_base_commons.js:165:17)
at Stream.<anonymous> (/usr/lib/node_modules/spdy/node_modules/handle-thing/lib/handle.js:88:10)
at Stream.emit (events.js:205:15)
at endReadableNT (/usr/lib/node_modules/spdy/node_modules/readable-stream/lib/_stream_readable.js:1077:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9)
Expected results:
Request is served successfully
Additional info:
It is possible to work this around using the workaround mentioned in the issue [1]. After I've made changes to node_modules/spdy/node_modules/handle-thing/lib/handle.js file, the error's disappeared:
88 - self.onread(uv.UV_EOF, Buffer.alloc(0))
88 + self.onread(Buffer.alloc(0))
94 - self.onread(uv.UV_ECONNRESET, Buffer.alloc(0))
94 + self.onread(Buffer.alloc(0))
Comment 5RHEL Program Management
2021-02-20 07:29:23 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.
Proposing to close - the problem was solved by update nodejs-spdy module to 4.0.2 version. Test was fixed accordingly and it was added to the tier1 testing.