Skip to content

Conversation

@TheSandDoctor
Copy link
Collaborator

Fixes bug #28 by changing how lines are parsed. Previously if a double line ending was embedded in the event it could trip up SSEClient and return early, resulting in an unterminated string/ValueError. This also helps to resolve a vulnerability identified by @decatur in this comment by eliminating a regular expression application on all buffered data for each chunk.

TheSandDoctor and others added 4 commits June 2, 2025 21:29
Fixes bug btubbs#28 by changing how lines are parsed. Previously if a double
line ending was embedded in the vent it could trip up SSEClient and
return early, resulting in an unteriminated string/ValueError.
Expanded the test to include tests to cover CR, LF, CRLF instead of just
LF (newline) and renamed the test to be more descriptive as to its
purpose.
@TheSandDoctor TheSandDoctor self-assigned this Jun 4, 2025
@TheSandDoctor
Copy link
Collaborator Author

TheSandDoctor commented Jun 4, 2025

This has been in continuous testing since last night but going to run it on the Wikimedia feed for a couple of days just to make sure that everything is working as desired, especially considering the relative rarity/randomness of the offending event message firing.

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

Successfully merging this pull request may close these issues.

1 participant