fstab / h2c

http2client
Apache License 2.0
274 stars 18 forks source link

Always receiving REFUSED_STREAM when sending PUSH_PROMISE #7

Open JonathanHenson opened 7 years ago

JonathanHenson commented 7 years ago

Example:

-> HEADERS(1)

Stream: RemainingSendFlowControlWindowIsEnough(58): 65535 > 58 = true -> DATA(1)

<- PUSH_PROMISE(1)

-> RST_STREAM(2) Error code: REFUSED_STREAM

<- HEADERS(2)

<- DATA(2)

Any thoughts on what's going on here?

fstab commented 7 years ago

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

JonathanHenson commented 7 years ago

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 commented 7 years ago

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

fstab commented 7 years ago

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