ninenines / gun

HTTP/1.1, HTTP/2, Websocket client (and more) for Erlang/OTP.
ISC License
891 stars 232 forks source link

gun_down missing StreamRef in websocket connection #265

Closed benbro closed 1 year ago

benbro commented 3 years ago

The manual says that gun_down should have a list of killed streams but I'm getting an empty list. I'm using recent commit in the master branch.

{gun_down, ConnPid, Protocol, Reason, KilledStreams}
KilledStreams      :: [gun:stream_ref()]
essen commented 3 years ago

When using Websocket over HTTP/1.1 Gun should return a list containing the Websocket's StreamRef.

benbro commented 3 years ago

Sometimes I'm getting an empty list and sometimes getting the Websocket's StreamRef.

essen commented 1 year ago

Fixed, thanks!