`devproxy --detach` blocks callers that capture its output
Maintainer antworten meist innerhalb von 1 Tag
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
Problem
On Windows, the agent ran:
devproxy --detach --no-first-run -c ..\devproxy\devproxyrc.json 2>&1 | Out-String
The command never returned: no output after 45 s, and the shell had to be killed. Dev Proxy itself was running. The agent abandoned --detach and wrote its own background-spawn logic.
The daemon is started with RedirectStandardOutput/Error = true (Program.cs). Likely cause: the detached child inherits the caller's pipe handles, so anything that reads the parent's output to EOF waits for the daemon to exit. This affects | Out-String, $(devproxy --detach) in bash, and subprocess or execSync with pipes. Not yet confirmed on macOS or Linux.
Proposal
- Start the daemon with stdio fully detached (null, or the log file) and without inheriting the caller's handles.
- Make sure the parent prints its startup info (PID, URLs, log file) and exits immediately.
- Add an integration test that runs
devproxy --detachthrough a captured pipe with a timeout. The existingProcessSmokeTestscover--detach, but not with captured output.
Found while evaluating how coding agents use Dev Proxy: VS Code + GitHub Copilot Chat with Claude Sonnet 5.5, Dev Proxy 4.0.0 on Windows, 5 runs of the task "add a CI script that starts Dev Proxy in the background, starts and stops recording through the API around npm start, and shuts Dev Proxy down through the API".
- Vorherrschende Sprache
- C#
- Sterne
- 841
- Forks
- 90
- Ø Merge
- 2 T. 10 Std.
- Gemergte PRs (30 T.)
- 63
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus dotnet/dev-proxy
-
ExecutionSummaryPlugin: internal log messages leak into the report as an "Unknown" categoryEvtl. vergeben @waldekmastykarz hat das vor 1 Tag übernommen. Offenbug work in progress
dotnet/dev-proxy#2097 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add `devproxy cert export` to write the root certificate to a fileEvtl. vergeben @waldekmastykarz hat das vor 1 Tag übernommen. Offenwork in progress
dotnet/dev-proxy#2085 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Update "Use Dev Proxy with Node.js" for native `fetch` proxy support and certificate trustEvtl. vergeben @waldekmastykarz hat das vor 1 Tag übernommen. Offendocumentation work in progress
dotnet/dev-proxy#2084 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Reference the API-inventory preset from the CI/CD and Record docsEvtl. vergeben @waldekmastykarz hat das vor 1 Tag übernommen. Offendocumentation work in progress
dotnet/dev-proxy#2083 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Document the shutdown contract for `POST /proxy/stopProxy`Evtl. vergeben @waldekmastykarz hat das vor 1 Tag übernommen. Offendocumentation work in progress
dotnet/dev-proxy#2081 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in dotnet/dev-proxy
Ähnliche Issues
-
needs-triage
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 76/100
Azure/azure-sdk-for-net#64658 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
dotnet/aspnetcore#70370 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
NethermindEth/nethermind#15684 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area/ai-assistant squad/flyt
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
Altinn/altinn-studio#21798 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 64/100
SubtitleEdit/subtitleedit#16699 ·
Maintainer antworten meist innerhalb von 1 Tag