daurnimator / lua-http

HTTP Library for Lua. Supports HTTP(S) 1.0, 1.1 and 2.0; client and server.
https://daurnimator.github.io/lua-http/
MIT License
778 stars 80 forks source link

add test case for server sending GOAWAY before opening a stream #198

Open jprjr opened 2 years ago

jprjr commented 2 years ago

Hi there - this is for issue #179 - it just adds a test case for what (I think) the expected behavior is - if a connection has received a GOAWAY frame before a stream is opened, then opening a stream should result in an error.

Happy to change if the expectation is elsewhere (that writing headers should be an error, or receiving should be an error)