Skip to content

docs: define ServeWithTimeout timing contract - #256

Merged
linkdata merged 2 commits into
mainfrom
docs/248-serve-timeout-contract
Aug 7, 2026
Merged

docs: define ServeWithTimeout timing contract#256
linkdata merged 2 commits into
mainfrom
docs/248-serve-timeout-contract

Conversation

@linkdata

@linkdata linkdata commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • define the exact supported whole-second range for ServeWithTimeout, from time.Second through 2,147,483,646 seconds
  • distinguish approximate retirement before Request.ServeHTTP from the duration passed directly to active keepalive pings
  • document activity marking by NewRequest, successful UseRequest, and Request.MarkWritten
  • align related API and README terminology while keeping exported godocs caller-facing

Closes #248

Verification

  • go doc github.com/linkdata/jaws Jaws.ServeWithTimeout
  • go doc github.com/linkdata/jaws Request.MarkWritten
  • go doc github.com/linkdata/jaws Jaws.UseRequest
  • go generate ./...
  • go vet ./...
  • gofmt -l .
  • gofumpt -l .
  • staticcheck ./...
  • golangci-lint run
  • gosec ./...
  • JAWS_REQUIRE_NODE=1 go test -race -coverprofile=coverage.out ./...
  • JAWS_REQUIRE_NODE=1 go test ./...
  • go build -v ./...
  • GOOS=linux GOARCH=386 CGO_ENABLED=0 go test -exec=/usr/bin/true ./lib/bind/...

Document the supported whole-second duration domain, approximate retirement before WebSocket processing, and direct per-ping timeout behavior. Align related API and README terminology.

Closes #248
State the exact supported timeout range and activity markers. Keep exported docs caller-facing while moving implementation terminology out of the rendered API contract.
@linkdata
linkdata merged commit 6d8abcb into main Aug 7, 2026
7 checks passed
@linkdata
linkdata deleted the docs/248-serve-timeout-contract branch August 7, 2026 14:30
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.

docs: define ServeWithTimeout's supported duration and timing semantics

1 participant