Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "caddyhttp: Use sync.Pool to reduce lengthReader allocations (#…
…5848)" This reverts commit c8559c4. Resolving the following panic: ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x122f9b5] goroutine 222573 [running]: github.com/caddyserver/caddy/v2/modules/caddyhttp.(*lengthReader).Close(0x0?) github.com/caddyserver/caddy/[email protected]/modules/caddyhttp/server.go:931 +0x15 golang.org/x/net/http2.(*clientStream).cleanupWriteRequest(0xc000e49980, {0x0, 0x0}) golang.org/x/[email protected]/http2/transport.go:1550 +0x1a2 golang.org/x/net/http2.(*clientStream).doRequest(0xc000e58f00?, 0x0?) golang.org/x/[email protected]/http2/transport.go:1327 +0x28 created by golang.org/x/net/http2.(*ClientConn).RoundTrip in goroutine 222537 golang.org/x/[email protected]/http2/transport.go:1232 +0x308 ```
- Loading branch information