Better HTTP/1 connection reuse

Tech & AIgo.devSince 2019

Better HTTP/1 connection reuse

Go 1.27 includes a change to the HTTP client that can make programs sending many sequential HTTP/1 requests significantly faster.

Quick read

A Go blog post explaining that Go 1.27 improves HTTP/1 connection reuse by automatically draining unread response bodies. This reduces repeated TCP/TLS setup costs so programs making many sequential HTTP/1 requests run much faster.

  • Automatic asynchronous draining of unread HTTP/1 bodies
  • Drains up to 50 ms or 256 KB to preserve connections
  • Skips draining when Connection: close is present

Reactions

No reactions yet. Record a short about this link and it shows up here, in Reels and in the community feed.

Is go.dev your site? Sign in to verify it and get a Verified badge, full stats and a link-back badge.

A closer look at Better HTTP/1 connection reuse

What this page describes

A change in Go 1.27’s net/http client that improves HTTP/1 connection reuse by automatically handling unread response bodies.

The page explains why opening new TCP and TLS connections is expensive (several round trips) and how reusing connections avoids that cost.

What the client actually does now

net/http.Transport in Go 1.27 will asynchronously drain an unread HTTP/1 response body for up to 50 ms or 256 KB to allow the connection to be reused.

It skips draining when the response has a Connection: close header, and includes other optimizations to reduce wasted work.

Who benefits and why it matters

Programs that make many sequential HTTP/1 requests and either ignore or only partially read response bodies will see fewer new connections opened and better latency.

Developers who previously implemented manual draining or complex time/byte caps can simplify their code because the Transport now handles common draining logic automatically.

Questions people ask about Better HTTP/1 connection reuse

Does this change apply to HTTP/2?
No; HTTP/2 multiplexes requests on a single connection and does not suffer from the unread-body blocking issue described for HTTP/1.
What are the limits the Transport uses when draining?
The Transport will drain up to 50 ms of data or 256 KB of body bytes, whichever limit is hit first.
Will the Transport always drain unread bodies?
It will automatically attempt asynchronous draining for HTTP/1 responses but will skip draining when the response has a Connection: close header.

What we found on this site

Home page answered in
65 ms
Trackers
Google Tag Manager
Ads
None found
RSS feed
Yes
AI crawlers
Lets them in
Set up for phones
Yes
Real-visitor speed
Passes Core Web Vitals
Popularity
Top 5,000 domain (Cloudflare)
Lighthouse on a phone
Speed 72, Accessibility 91, SEO 92
Google safety check
No threats found
Domain registered
2019
Domain renews
February 2027

Checked November 20, 2026 from the site’s own code and public records. See how the rest of the web compares in the NexURLs Internet Report.

Sites like Better HTTP/1 connection reuse

More Tech & AI finds

All Tech & AI websites →

Feeling lucky? Try the random website generator.

Where people went next

Nobody has added a next stop yet. Be the first.

Five finds like this, every morning

Five great websites every morning, picked by people and written up by AI. Free, and one click to stop.

Remember Me
Scroll to Top

More

📰 Latest Posts
📊 Community Stats
👋 New Members
👥 Popular Groups