- Explicitly bind to IPv4 only with net.ListenTCP("tcp4", ...) to
avoid IPv6 (::1) vs IPv4 (127.0.0.1) mismatch on macOS where
Listen("tcp", "127.0.0.1:0") might bind ::1.
- Close the connection immediately after writing the response.
If we keep it open, the client's request-body writer goroutine
blocks on the socket (waiting for server to drain the body).
Closing immediately unblocks it; the client already received
the response so the write error is harmless.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| cmd | ||
| internal | ||
| migrations | ||
| pkg/provisionhook | ||
| .air.toml | ||
| .ci-force | ||
| .gitignore | ||
| .golangci.yaml | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| Dockerfile.tenant | ||
| entrypoint-tenant.sh | ||
| go.mod | ||
| go.sum | ||