Skip to content

🎫 add msgp#965

Merged
Fenny merged 2 commits into
gofiber:masterfrom
Fenny:master
Oct 26, 2020
Merged

🎫 add msgp#965
Fenny merged 2 commits into
gofiber:masterfrom
Fenny:master

Conversation

@Fenny
Copy link
Copy Markdown
Member

@Fenny Fenny commented Oct 26, 2020

No description provided.

@Fenny Fenny requested a review from a team as a code owner October 26, 2020 00:12
@Fenny Fenny requested review from ReneWerner87 and koddr and removed request for a team October 26, 2020 00:12
@Fenny Fenny merged commit 93cd0c5 into gofiber:master Oct 26, 2020
gtoxlili pushed a commit to gtoxlili/fiber that referenced this pull request May 9, 2026
The "Working with RequestCtx and fasthttpctx" section and the Summary
bullet claimed that `RequestCtx.Done` closes when the client connection
ends. That is not what fasthttp actually does — `s.done` is the shared
server-wide channel and only closes on `Server.Shutdown`. Per-connection
disconnect detection is not currently provided by fasthttp.

Sources:
- valyala/fasthttp `server.go` comment on `RequestCtx.Done`:
  "RequestCtx.s.done is only closed when the server is shutting down"
- valyala/fasthttp#468, gofiber#771, gofiber#965 — upstream maintainers confirm in-handler
  client disconnect detection is not supported
- gofiber#805 (Fenny: "not possible nor efficient with fasthttp
  sync.pool design") and gofiber#1718 (same Q&A, closed with the same answer)
- gofiber#4145 — open proposal asking for the very capability the
  docs already advertised

Updates three spots in docs/guide/context.md:
1. The fasthttpctx paragraph — now describes the actual semantics and
   points readers to timeout / Flush-based detection for long handlers.
2. The "Context Cancellation with Goroutines" paragraph — drops the
   misleading "client disconnects" phrasing.
3. The Summary bullet — matches the corrected description.

Fixes gofiber#4263
gtoxlili pushed a commit to gtoxlili/fiber that referenced this pull request May 9, 2026
The "Working with RequestCtx and fasthttpctx" section and the Summary
bullet claimed that `RequestCtx.Done` closes when the client connection
ends. That is not what fasthttp actually does — `s.done` is the shared
server-wide channel and only closes on `Server.Shutdown`. Per-connection
disconnect detection is not currently provided by fasthttp.

Sources:
- valyala/fasthttp `server.go` comment on `RequestCtx.Done`:
  "RequestCtx.s.done is only closed when the server is shutting down"
- valyala/fasthttp#468, gofiber#771, gofiber#965 — upstream maintainers confirm in-handler
  client disconnect detection is not supported
- gofiber#805 (Fenny: "not possible nor efficient with fasthttp
  sync.pool design") and gofiber#1718 (same Q&A, closed with the same answer)
- gofiber#4145 — open proposal asking for the very capability the
  docs already advertised

Updates three spots in docs/guide/context.md:
1. The fasthttpctx paragraph — now describes the actual semantics and
   points readers to timeout / Flush-based detection for long handlers.
2. The "Context Cancellation with Goroutines" paragraph — drops the
   misleading "client disconnects" phrasing.
3. The Summary bullet — matches the corrected description.

Fixes gofiber#4263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant