Document the shutdown contract for `POST /proxy/stopProxy`
Maintainer thường phản hồi trong vòng 1 ngày
@waldekmastykarz đang làm issue này rồi.
Từ ngày 5/11/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Problem
The Proxy API page says only "Gracefully shuts down Dev Proxy" and returns 202 Accepted. It doesn't say:
- whether recording is stopped and reports are written before exit,
- that system proxy and certificate changes are reverted,
- how long shutdown typically takes and what exit code to expect,
- how a script knows Dev Proxy has exited. The CI/CD overview suggests grepping the log for
DONE, but that's not linked from here.
Without this, every agent-written script added a 15–30 s wait and a kill fallback. Killing the process skips cleanup.
Proposal
Under POST /proxy/stopproxy, document what happens on shutdown and in what order, plus the recommended way to wait for exit. Examples: wait on the PID returned by --detach, poll devproxy status --pid <pid>, or check the log for DONE. Note that the API is no longer reachable once shutdown starts.
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".
- Ngôn ngữ chính
- C#
- Star
- 841
- Fork
- 90
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 63
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của dotnet/dev-proxy
-
ExecutionSummaryPlugin: internal log messages leak into the report as an "Unknown" categoryCó thể đã có người làm @waldekmastykarz đã nhận 1 ngày trước. Đang mởbug work in progress
dotnet/dev-proxy#2097 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add `devproxy cert export` to write the root certificate to a fileCó thể đã có người làm @waldekmastykarz đã nhận 1 ngày trước. Đang mởwork in progress
dotnet/dev-proxy#2085 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Update "Use Dev Proxy with Node.js" for native `fetch` proxy support and certificate trustCó thể đã có người làm @waldekmastykarz đã nhận 1 ngày trước. Đang mởdocumentation work in progress
dotnet/dev-proxy#2084 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Reference the API-inventory preset from the CI/CD and Record docsCó thể đã có người làm @waldekmastykarz đã nhận 1 ngày trước. Đang mởdocumentation work in progress
dotnet/dev-proxy#2083 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`devproxy --detach` blocks callers that capture its outputCó thể đã có người làm @waldekmastykarz đã nhận 1 ngày trước. Đang mởwork in progress
dotnet/dev-proxy#2080 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của dotnet/dev-proxy
Issue tương tự
-
needs attention untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet#3666 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
MicrosoftLearning/eShopOnWeb#466 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
stryker-mutator/stryker-net#3974 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
JiaFeiMiao-K-Cat/DiscImageStudio#171 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày