-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client streams are not resetable #14
Comments
2012年3月3日6:47 sorced-jim
I think you can use before_ctrl_send_callback here.
I use heap to sort pending SYN_STREAM frames in priority so that
|
I'll leave this bug open until there is some documentation about this. |
I documented about this in spdylay.h. I also added simplified time chart which tells when callback functions are called. |
It is not possible to reset in progress streams from the client at the moment. The reason is that a client calls
spdylay_submit_request with some stream user data. The users callbacks get the stream user data to pass information to the client. However, the stream id is needed to call spdylay_submit_rst_stream.
I'm currently hacking around this by setting the stream id on my stream user data object in my request body callback and the syn_reply callback.
This means that for bodiless requests can't be cancelled between sending a request and getting the first control header for the response.
I think the solution would be to return the stream_id from submit_request.
The text was updated successfully, but these errors were encountered: