Skip to content

Fix for emrun --kill-exit - #25703

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:fix_emrun
Nov 3, 2025
Merged

sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:fix_emrun

Conversation

@sbc100

@sbc100 sbc100 commented Nov 2, 2025

Copy link
Copy Markdown
Collaborator

This was broken by #25359. I though I was just moving this assignment to the correct place, but it seems like it broken emrun because the 1.1 protocol was not actually enabled before. Once enabled it seems like this was causing httpd.server_close to hang forever.

Fixes: #25654

This was broken by emscripten-core#25359.  I though I was just moving this assignment
to the correct place, but it seems like it broken emrun because the 1.1
protocol was not actually enabled before.  Once enabled it seems like
this was causing `httpd.server_close` to hang forever.

Fixes: emscripten-core#25654
@sbc100
sbc100 requested review from juj and kripken November 2, 2025 21:57
@juj

juj commented Nov 3, 2025

Copy link
Copy Markdown
Collaborator

Is protocol_version a upstream SimpleHTTPRequestHandler variable, or something used just by us?

@juj

juj commented Nov 3, 2025

Copy link
Copy Markdown
Collaborator

Would be good to have a test of the failing cmdline if possible. I think we had emrun tests in the other suite?

@sbc100

sbc100 commented Nov 3, 2025

Copy link
Copy Markdown
Collaborator Author

I think that our emrun tests are currently disabled.. we should certainly re-enable. When we do I will try to confirm if there is already a test for this, and if not I will add one.

@sbc100

sbc100 commented Nov 3, 2025

Copy link
Copy Markdown
Collaborator Author

Is protocol_version a upstream SimpleHTTPRequestHandler variable, or something used just by us?

Its upstream. However I guess that point at which is it read means that out previous usage of it was not effectual When I I fixed that, the 1.1 starting having and effect which then broke emrun due to the open connection.

@sbc100
sbc100 merged commit 14ffb90 into emscripten-core:main Nov 3, 2025
34 checks passed
@sbc100
sbc100 deleted the fix_emrun branch November 3, 2025 16:15
inolen pushed a commit to inolen/emscripten that referenced this pull request Feb 13, 2026
This was broken by emscripten-core#25359. I though I was just moving this assignment to
the correct place, but it seems like it broken emrun because the 1.1
protocol was not actually enabled before. Once enabled it seems like
this was causing `httpd.server_close` to hang forever.

Fixes: emscripten-core#25654
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.

emrun --kill_exit 4.0.16 regression

2 participants