n0nuser/monitor-agent

Command Execution blocks requests

Closed this issue · 1 comments

Describe the bug
Executing an interactive command blocks incoming requests until it finishes.

To Reproduce
Steps to reproduce the behavior:

  1. POST: localhost:8000/command?command=python -m http.server 8080&timeout=60
  2. 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

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.