Closed joelcox closed 11 years ago
Thank you, fixed in @1.4.4
Thanks for your quick response Fedor, but I still have some issues when using 1.4.4. Would you like me to create a new issue for this?
stream.js:74
dest.destroy();
^
TypeError: Object #<Parser> has no method 'destroy'
at Socket.onclose (stream.js:74:10)
at Socket.EventEmitter.emit (events.js:115:20)
at Socket._destroy.destroyed (net.js:358:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Both the latest Chrome Canary and Firefox choke when trying to visit the page
Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.
What node.js version are you using?
This is on node v0.8.1
It's very very old and retarded :) Use a fresh one, please. (0.8.18)
True, but the requirements for this module only states it supports node 0.7 and up ;-)
Anyway, I updated to Node 0.8.18, which gets rid of the error message, but the request still seems to time out in both Firefox and Chrome. What would be the best way to get you the data you need? I tried looking for a compatibility test suite, but there seems to be none.
Well, can you give me some sources to reproduce it? Small test case, better if reduced.
This code I'm using is the exact code from the README, with the key options removed and the plain option added:
➜ lab-5-spdy git:master ✗ node -v
v0.8.18
➜ lab-5-spdy git:master ✗ npm install spdy@1.4.4
npm http GET https://registry.npmjs.org/spdy/1.4.4
npm http 304 https://registry.npmjs.org/spdy/1.4.4
spdy@1.4.4 node_modules/spdy
➜ lab-5-spdy git:master ✗ cat spdy.js
var spdy = require('spdy'),
fs = require('fs');
var options = {
plain: 'spdy/3',
// SPDY-specific options
windowSize: 1024, // Server's window size
};
var server = spdy.createServer(options, function(req, res) {
res.writeHead(200);
res.end('hello world!');
});
server.listen(8000);
Ah, I think I got it. Have you setup a TLS-terminating proxy in front of spdy server, or are you just trying to connect to it directly?
Nope, I'm trying to connect to it directly.
On Feb 9, 2013, at 11:50 AM, Fedor Indutny notifications@github.com wrote:
Ah, I think I got it. Have you setup a TLS-terminating proxy in front of spdy server, or are you just trying to connect to it directly?
— Reply to this email directly or view it on GitHub..
So, why are you using plain
then? :)
I was under the impression that running a TLS proxy wasn't required, my bad. Thanks for your help.
Hey there,
When I create a SPDY server using the latest (
1.4.1
) version of this module and setting theplain
option, visiting the page in the latest Chrome/Firefox will throw the following stack trace.This happens both for
spdy/2
and forspdy/3
Running the same Express application over an encrypted SPDY connection works as expected.