server: low-priority follow-ups from the connection-error review
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- api, backend, networking, testing
Research direction
Start with the server connection handling around ConnectionClosed::error(), the accept loop, serve_connection, and BoundServer::with_connection_extensions. Review how Windows and non-Windows errors, hyper re-exports, and the compile-fail doctest are currently handled. Done means each listed follow-up has focused coverage or validation without changing the public behavior incompatibly.
Written by the indexing model from the issue text.
Description
Low-priority follow-ups from the review of #310. None is a defect, and each can land without a breaking change.
- A typed error for a panicking connection-extensions function.
ConnectionClosed::error()reports such a panic as a string error, so a caller can tell it apart from a transport failure only by its message. A small public,#[non_exhaustive]error type would let callersdowncast_refit. libconly on non-Windows targets. The server useslibconly forEMFILE/ENFILE; on Windows the fd-exhaustion check matchesWSAEMFILEinstead, solibccould become acfg(not(windows))dependency.WSAENOBUFS(10055) on Windows. Winsock can return it fromacceptwhen system-wide socket resources run out, the analogue ofENFILE. Check how std classifies it, and whether the accept loop should pause on it too.- Re-exporting
hyper. ClassifyingConnectionClosed::error()(for example,hyper::Error::is_timeoutfor a header-read timeout) needs the caller's ownhyperdependency, as does naminghyper::body::Incomingin the freeserve_connectionbound. Aserver-gatedpub use hyper;would remove that. - The
compile_fail,E0596doctest onBoundServer::with_connection_extensions. rustdoc checks the error code only on nightly, so on stable the test passes for any compile error. A compilingno_runtwin sits next to it; a nightly doctest job, or atrybuildtest, would pin the code.
- Dominant language
- Rust
- Stars
- 544
- Forks
- 77
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from connectrpc/connect-rust
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
connectrpc/connect-rust#360 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
connectrpc/connect-rust#358 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 53/100
connectrpc/connect-rust#355 ·
-
Streaming request body errors are always reported as `internal`Possibly taken @AhmedElBanna80 claimed this 18 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
connectrpc/connect-rust#352 ·
-
Difficulty 3/5 Half a day Newbie friendliness 48/100
connectrpc/connect-rust#349 ·
All issues in connectrpc/connect-rust
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Choochmeque/tauri-plugin-webdriver#134 ·
Maintainers usually reply within 17 days
-
bug rust SDK & CLI & REST API
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
boxlite-ai/boxlite#3292 ·
Maintainers usually reply within 1 day
-
Android bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
anefzaoui/misterdownloadmanager#2516 ·
Maintainers usually reply within 1 day
-
editor ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
state:triage tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 89/100
agent8-cash/ethpayserver#731 ·
Maintainers usually reply within 1 day