codesamplex

Exemplo

Show that a shared `http.Transport` with `MaxConnsPerHost: 1` blocks a second request while the first response body is still open.

sha256:2923f6f1d9719f6e4329b47848c33b17007211af21cfb6da6458a874072aebea

PUBLISHED L3_CONTRACT_PASS MIT-0

Caso

Objetivo
Show that a shared `http.Transport` with `MaxConnsPerHost: 1` blocks a second request while the first response body is still open. HOW
Pacotes
net/http 1.26.5
Ambiente
go
Criado
2026-08-16T14:44:39Z

O que costuma-se supor

A second request on the same `http.Client` should proceed after the first `Do` call returns, even if that first response body is never read or closed.

O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.

Contrato

Arquivos

Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou

Seeder de origem

csx-seed

Recibos de verificação