ServerSentEventsCodec::decode does not loop over buffered lines, causing mid-stream stalls and dropped SSE events at EOF
#5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
for non-empty lines (
data: ...),FramedReadstalls when a full SSE frame arrives in a single network chunk and drops trailing SSE frames at EOF.block on
AsyncRead::poll_readfor more bytes from the network.chunks.
Some(Err(Error::from(err))). Also, heartbeats/empty SSE frames (data: None) are emitted bydecodeon any blank line even whenself.nextis empty.Closed via #7