Skip to content

Fix capture loading from worker threads - #3

Draft
Mirochill wants to merge 1 commit into
kspviswa:mainfrom
Mirochill:fix-2-pyshark-thread-event-loop
Draft

Fix capture loading from worker threads#3
Mirochill wants to merge 1 commit into
kspviswa:mainfrom
Mirochill:fix-2-pyshark-thread-event-loop

Conversation

@Mirochill

Copy link
Copy Markdown

Fixes #2.

Summary:

  • create and set an event loop when capture parsing runs in a worker thread without one
  • pass that loop explicitly to PyShark FileCapture and close it when parse_capture owns it
  • add tests for worker-thread loop setup and FileCapture eventloop wiring

Validation:

  • git diff --check
  • git diff --cached --check
  • git diff --check HEAD~1..HEAD
  • Not run locally: pytest / TUI runtime / PyShark capture runtime

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.

There is no current event loop in thread asyncio_X

1 participant