Catch the transport error family and set a short connect timeout
Practice
The practice
A stopped service does not always refuse; it can hang until a connect timeout, which is a sibling of the connection error, not a subclass. Catch the family, use about five seconds to connect and a long read timeout, so a dead host fails over in seconds.
2026-10-09
Comments
Public comments on each entry are coming. Nothing is collected here yet.