Command Execution blocks requests
Closed this issue · 1 comments
n0nuser commented
Describe the bug
Executing an interactive command blocks incoming requests until it finishes.
To Reproduce
Steps to reproduce the behavior:
- POST: localhost:8000/command?command=python -m http.server 8080&timeout=60
- POST: localhost:8000/command?command=dir&timeout=5
Expected behavior
First POST launch and be in background or at least not blocking second POST.
Desktop (please complete the following information):
- OS: Windows
- Version 1.0.0
Additional context
Check Subprocess calls
n0nuser commented
Closed due to the incapacity of solving this. This is a reported bug in Python from a lot of time ago that is caused by the way Windows manages processes.
There aren't any easy workaround for this because it's already in an async function.