defaultTimeout constant

Duration const defaultTimeout

How long a request may take before it is abandoned.

Without one, a connection that opens and then stalls - a captive portal, a load balancer holding the socket - leaves the caller waiting forever.

Implementation

static const Duration defaultTimeout = Duration(seconds: 30);