Skip to content
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
merged 24 commits into from
Jun 13, 2024

Conversation

Cykooz
Copy link
Member

@Cykooz Cykooz commented Jan 18, 2023

0.13.0 (not-released)

  • Added argument cors_config into function add_endpoint()
    to support of CORS settings from aiohttp_cors.

  • Added arguments heartbeat_delay and disconnect_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 into Session.

  • Methods _acquire and _release of Sessions renamed into
    acquire and release.

  • Added processing of ConnectionError in StreamingTransport.

  • Changed arguments of handler function. Now handler function must be 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.

0.12.0 (2022-02-08)

  • 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: Deleted method SessionManager.route_url().
  • Breaking change: Changed name of some routes.
  • Breaking change: Dropped support of Python < 3.7
  • Fixed processing of heartbeats and a session expiration.
  • 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__().
  • Added argument cors_config into function add_endpoint() to 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.

CI:

  • TravisCI replaced by GItHub Actions

- 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.
- Methods ``_acquire`` and ``_release`` of ``Sessions`` renamed into ``acquire`` and ``release``.
@Cykooz Cykooz marked this pull request as ready for review May 22, 2023 19:46
@Cykooz Cykooz requested review from asvetlov and removed request for asvetlov May 22, 2023 19:50
@Cykooz
Copy link
Member Author

Cykooz commented May 22, 2023

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.
@Cykooz Cykooz closed this Jul 7, 2023
@Cykooz Cykooz merged commit ab16e84 into aio-libs:master Jun 13, 2024
3 checks passed
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.

None yet

1 participant