idleTimeout property
read / write
Gets or sets the timeout used for idle keep-alive connections. If no further request is seen within idleTimeout after the previous request was completed, the connection is dropped.
Default is 120 seconds.
Note that it may take up to 2 * idleTimeout
before a idle connection is aborted.
To disable, set idleTimeout to null
.
Implementation
Duration? idleTimeout = const Duration(seconds: 120);
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/HttpServer/idleTimeout.html