crossbario / crossbario/autobahn-python
Option for automatic graceful shutdown
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 768
- PR merge metrics
- No merged PRs in 30d
Description
Would it be possible to publicly expose the self._invocations dictionary (https://github.com/crossbario/autobahn-python/blob/2e94d12c176eb34e74c788ceb4ada0b7bef916f6/autobahn/wamp/protocol.py#L356) in the WAMP protocol? For background, we want to be able to wait on all pending incoming requests to complete when we are shutting down a WAMP session. Alternatively, if there is a way to guarantee that the incoming requests are completed before disconnecting, that would work too.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with autobahn/wamp/protocol.py at the referenced self._invocations dictionary and trace how incoming requests and WAMP session disconnection are handled. Determine whether exposing pending invocations or guaranteeing their completion before disconnecting meets the shutdown requirement, then verify the chosen behavior with the relevant protocol tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100