Go for Infrastructure
net/http transport: operational verification
Explain what Client.Timeout covers in net/http, why the default client can hang on a silent server, and how transport limits narrow down the stalled phase.
What you will be able to do
- Explain what Client.Timeout covers, compared with the transport's narrower limits.
- Verify that an outbound call stops against a test server that never replies.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Go for Infrastructure
- Backpressure in Go: operational verificationAdvanced · 4 min
Explain how a buffered channel holds queued work, why a large buffer is a hidden queue, and how blocking, dropping and rejecting handle a full buffer.
- HTTP server timeouts: failure analysisAdvanced · 4 min
Explain which net/http Server timeout covers each phase of a request, and how a missing read timeout lets slow clients hold file descriptors for long periods.
- Connection reuse: failure analysisAdvanced · 4 min
Explain why HTTP/1.1 connections are persistent by default, and how response bodies that are not closed stop connections from returning to the idle pool, so new ones…