Skip to content

fix: race condition in queue creation and deprecated asyncio API - #24

Closed
AxelWT wants to merge 1 commit into
janbjorge:mainfrom
AxelWT:fix-race-condition-and-deprecation
Closed

AxelWT wants to merge 1 commit into
janbjorge:mainfrom
AxelWT:fix-race-condition-and-deprecation

Conversation

@AxelWT

@AxelWT AxelWT commented Apr 14, 2026

Copy link
Copy Markdown
Contributor
  • Use setdefault() for atomic queue creation, fixing race between HTTP and WebSocket handlers that could orphan requests
  • Replace deprecated asyncio.get_event_loop() with get_running_loop()
  • Fix empty headers string in error response ("{}" instead of "")
  • Add asyncio_default_fixture_loop_scope to pytest config

- Use setdefault() for atomic queue creation, fixing race between HTTP
  and WebSocket handlers that could orphan requests
- Replace deprecated asyncio.get_event_loop() with get_running_loop()
- Fix empty headers string in error response ("{}" instead of "")
- Add asyncio_default_fixture_loop_scope to pytest config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@janbjorge

Copy link
Copy Markdown
Owner

thanks for submitting, are you able to make a tests that shows correctness?

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.

2 participants