-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed processing of heartbeats and a session expiration and addeds support of aiohttp_cors #448
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Fixed ping-pong based heartbeats for web-socket connections. - Added arguments ``heartbeat_delay`` and ``disconnect_delay`` into ``Session.__init__()``. - Added argument ``disconnect_delay`` into ``SessionManager.__init__()``. - **Breaking change:** Removed argument ``timeout`` from ``Session.__init__()`` and ``SessionManager.__init__()``. - **Breaking change:** Argument ``heartbeat`` of ``SessionManager.__init__()`` renamed into ``heartbeat_delay``. - **Breaking change:** ``Session.registry`` renamed into ``Session.app``. - **Breaking change:** Dropped support of Python < 3.7
# Conflicts: # requirements.txt
…support of CORS settings from ``aiohttp_cors``. - Function ``add_endpoint()`` now returns all registered routes. - Replaced returning instances of error HTTP responses on raising its as exceptions. - Changed name of some routes.
…ction ``add_endpoint()``.
- Methods ``_acquire`` and ``_release`` of ``Sessions`` renamed into ``acquire`` and ``release``.
Somebody please remove Travis CI from pull request checks! |
… defined like ``async def handler(manager, session, msg):`` - Constants: - FRAME_OPEN - FRAME_CLOSE - FRAME_MESSAGE - FRAME_MESSAGE_BLOB - FRAME_HEARTBEAT replaced by ``Frame`` enums with corresponding values. - Constants: - MSG_OPEN - MSG_MESSAGE - MSG_CLOSE - MSG_CLOSED replaced by ``MsgType`` enums with corresponding values. - Constants: - STATE_NEW - STATE_OPEN - STATE_CLOSING - STATE_CLOSED replaced by ``SessionState`` enums with corresponding values.
- Fixed code style.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
0.13.0 (not-released)
Added argument
cors_config
into functionadd_endpoint()
to support of CORS settings from
aiohttp_cors
.Added arguments
heartbeat_delay
anddisconnect_delay
into function
add_endpoint()
.Function
add_endpoint()
now returns all registered routes.Replaced returning instances of error HTTP responses
on raising its as exceptions.
Changed name of some routes.
Heartbeat task moved from
SessionManager
intoSession
.Methods
_acquire
and_release
ofSessions
renamed intoacquire
andrelease
.Added processing of
ConnectionError
inStreamingTransport
.Changed arguments of handler function. Now handler function must be defined
like
async def handler(manager, session, msg):
Constants:
replaced by
Frame
enums with corresponding values.Constants:
replaced by
MsgType
enums with corresponding values.Constants:
replaced by
SessionState
enums with corresponding values.0.12.0 (2022-02-08)
timeout
fromSession.__init__()
andSessionManager.__init__()
.heartbeat
ofSessionManager.__init__()
renamed intoheartbeat_delay
.Session.registry
renamed intoSession.app
.SessionManager.route_url()
.heartbeat_delay
anddisconnect_delay
intoSession.__init__()
.disconnect_delay
intoSessionManager.__init__()
.cors_config
into functionadd_endpoint()
to support of CORS settings fromaiohttp_cors
.add_endpoint()
now returns all registered routes.CI: