walkor / walkor/webman

Co existing with another event loop?

Open
#331 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
2.7k
Forks
251
PR merge metrics
No merged PRs in 30d

Description

Hi @walkor

I'm using a binary library using ffi and the functionality I'm using that have its own event loop. Once I initialize it and it reaches this part of execution, it blocks, and Workerman fails to execute cause it's not reached.

I know they both execute in the same thread, but thought to ask if there's a possible solution for such issue.

What ideally I would like is having both operate normally without issues.

Any ideas or workarounds 🤔

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the interaction between the PHP FFI binary library's event loop and Workerman in the same thread, focusing on where the library blocks before Workerman executes. Determine whether a documented workaround or an integration change can let both event loops operate normally, then validate it with a minimal reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.