Closed igrigorik closed 12 years ago
What versions of node and node-spdy are you using?
v0.7.10-pre for node.js. Checked out the latest and greatest v3 branch.. Tried with master and others, same behavior.
What are you using for the upstream app? Node-spdy doesn't establish the request / response objects, but re-uses and decorates them. Still, I can't think why an upstream app wouldn't have a socket associated with it -- especially if it had called writeHead...
Tracked it down... Turns out node's handling of upgrade
and connect
currently exposes a different API:
https://github.com/joyent/node/pull/3036
Current API: https://github.com/joyent/node/commit/08a91acd76cd107dc2f3914f9ea7e277bb85206e#L2R56
With that, got my code to work. Annoying, because I have to replicate the SYN_REPLY frame construction in my server, but does the trick. Speaking of which, we need to extend node-spdy to emit connect
events -- I'll open a separate pull for that.
Trying to figure out what's going here.. For some reason, if I issue a "CONNECT" query against the server, the response object does not have the socket? This fails later when we try to create the SYN_REPLY.
Frame example:
Any ideas?