Closed gx0r closed 9 years ago
@llambda interesting! Do you have a test case? I'm particularly interested in the headers that might be sent to the browser.
Did it crash?
Not sure if it crashed, was running under nodemon with autorestart. Unfortunately I haven't been able to reproduce the "New stream after GOAWAY", but I do get ERR_SPDY_COMPRESSION_ERROR consistently though.
@llambda do you think it might be possible to know the headers that were sent by your application? Or maybe a tcpdump either of client or server side?
Nah, ignore tcpdump this is TLS. It is all encrypted.
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwaG9uZW51bWJlciI6IjU1NTU1NTU1NTUiLCJpYXQiOjE0MzkyNjE4OTl9.WAPTyd0puz1g9hBEk4IOr_PY5g8Ze8ZXNQsAV4xiwCI Referer: https://localhost:8443/?/conversations User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.130 Safari/537.36 X-Requested-With: XMLHttpRequest
(Unfortunately, Chrome only gives "Provisional headers are shown", that's all the headers I could see on the failed request.)
@llambda I was actually talking about response headers that were sent by server.
Unfortunately Chrome doesn't show any, neither does firefox.
@llambda I'm going to add some debug logging to spdy. May I ask you to add an env variable and gist the logs after that?
Yes, sure. By the way, I discovered when I turn off
app.use(require('koa-response-time')());
I no longer get ERR_SPDY_COMPRESSION_ERROR. However Cookies may be getting mangled in requests. I am trying to reproduce in a test case, but no luck yet.
Thank you so much!
Please give a try to spdy@2.0.0-rc2 and set DEBUG="spdy:framer:extra"
in your environment variables before starting it.
@llambda looks like I still miss a few info :) May ask you to run it again with DEBUG="spdy*"
?
Okay. I updated the gist above.
Here is another gist. This time reloading the site a few times as the debug output changes.
Thanks @llambda ! I'll figure it out (probably tomorrow)
Awesome :smile:
Fixed, it was really stupid: https://github.com/indutny/hpack.js/commit/101622f85193deb8c62a1982900465eec5376abc
Sorry!
Getting the following with rc1. Chrome says "Failed to load resource: net::ERR_SPDY_COMPRESSION_ERROR"