Skip to content

[FIX] server_environment: fix deadlock between gevent and subprocesses - #290

Open
gurneyalex wants to merge 1 commit into
OCA:16.0from
camptocamp:16.0-fix-server-env-deadlock
Open

[FIX] server_environment: fix deadlock between gevent and subprocesses#290
gurneyalex wants to merge 1 commit into
OCA:16.0from
camptocamp:16.0-fix-server-env-deadlock

Conversation

@gurneyalex

Copy link
Copy Markdown
Member

Call to subprocess.Popen caused a deadlock. This broke the gevent worker when workers > 0. As a consequence, the port 8072 supposed to handle /websocket never responds.

Gevent warns against it on startup:

gevent/os.py:426: DeprecationWarning: This process is multi-threaded, use of fork() may lead to deadlocks in the child.

This is a backport of #272

Call to `subprocess.Popen` caused a deadlock. This broke the gevent
worker when `workers > 0`. As a consequence, the port 8072 supposed to
handle /websocket never responds.

Gevent warns against it on startup:
> gevent/os.py:426: DeprecationWarning: This process is multi-threaded, use of fork() may lead to deadlocks in the child.
@OCA-git-bot OCA-git-bot added mod:server_environment Module server_environment series:16.0 labels Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:server_environment Module server_environment series:16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants