igrigorik/spdy — Issue #5: Associating to stream ID value is not being sent when passed as an option in SynStream#create
Author: inkel
Created: 2011-10-08 04:04:13+00:00
State: open

I've been playing with some very basic examples trying to figure out how to do Server Push and I've come with a [working solution](https://github.com/inkel/spdy-examples/blob/master/push_server.rb), though probably imperfect, but I've found an issue while trying to create a `SYN_STREAM` from the server associated with the request stream ID.

Checking the events tab in Chrome's about:net-internals I saw that the client was sending `SPDY_SESSION_SEND_RST_STREAM` and carefully looking found that `associated_to_stream_id` wasn't being sent by the server.

I tried passing the default value in `SynStream.new` and `SynStream#create` with no luck, until I realize that it was a property, so I proceed to instantiate the `SynStream` and then passing the request stream ID to [`SynStream#associated_to_stream_id=`](https://github.com/inkel/spdy-examples/blob/master/push_server.rb#L102).

It's likely that I did something wrong, but if you perhaps could try it and check that is working that'd be great.

I hope this helps.