aio-libs / aiohttp-sse

Server-sent events support for aiohttp
Other
192 stars 35 forks source link

Add timeout support #469

Open Olegt0rr opened 4 months ago

Olegt0rr commented 4 months ago

What do these changes do?

Provides a way to work around issue https://github.com/sysid/sse-starlette/issues/89

Are there changes in behavior for the user?

Added the ability to set a timeout for interaction with a connection.

For example, if a hung connection does not read ping messages, then after a while we can automatically disconnect it to free up resources.

Related issue number

https://github.com/sysid/sse-starlette/issues/89

Checklist

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (2cd91ea) to head (26251da). Report is 17 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #469 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 4 4 Lines 475 501 +26 Branches 54 57 +3 ========================================= + Hits 475 501 +26 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.