Skip to content
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

Always receiving REFUSED_STREAM when sending PUSH_PROMISE #7

Open
JonathanHenson opened this issue Apr 5, 2017 · 4 comments
Open

Comments

@JonathanHenson
Copy link

Example:

-> HEADERS(1)
- END_STREAM
+ END_HEADERS
:method: POST
:scheme: https
:authority: localhost:8443
:path: /
content-type: application/json
content-length: 58

Stream: RemainingSendFlowControlWindowIsEnough(58): 65535 > 58 = true
-> DATA(1)
+ END_STREAM
{58 bytes}

<- PUSH_PROMISE(1)
+ END_HEADERS
Promised Stream Id: 2
:authority: localhost:8443
:path: /

-> RST_STREAM(2)
Error code: REFUSED_STREAM

<- HEADERS(2)
- END_STREAM
+ END_HEADERS
:status: 400

<- DATA(2)
+ END_STREAM
{73 bytes}

Any thoughts on what's going on here?

@fstab
Copy link
Owner

fstab commented Apr 9, 2017

Did you set the :method and :scheme headers in the push promise?

@JonathanHenson
Copy link
Author

i set method originally, but not scheme.

will try in the morning. Do you have a ref to the part of the spec that details what needs to be set in the promise?

@JonathanHenson
Copy link
Author

im using this to test an http2 implementation because In too lazy to write a client while Im writing the server.

@fstab
Copy link
Owner

fstab commented Apr 10, 2017

The push promise should contain the same headers that would normally be present in a request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants