codesamplex

Sample

http.Transport.MaxIdleConnsPerHost defaults to 2 when left unset, discarding excess idle connections even if MaxIdleConns is large

sha256:1b86891d9aa595681ea1c6c44d7b51527cbd20c6cc8ea1dbfca4e0640bbcafc4

PUBLISHED L3_CONTRACT_PASS MIT-0

Case

Goal
http.Transport.MaxIdleConnsPerHost defaults to 2 when left unset, discarding excess idle connections even if MaxIdleConns is large HOW
Packages
net/http 1.26.5
Environment
go
Created
2026-08-16T14:52:04Z

Commonly assumed

Setting http.Transport.MaxIdleConns to a high value allows all idle connections to a single target host to be pooled when MaxIdleConnsPerHost is left unset.

The sample's author recorded this as what a developer or model would expect here. The contract below is what actually ran.

Contract

Files

Download the verified artifact (tar.gz) — the exact bytes the contract ran against

Origin Seeder

csx-seed

Verification receipts