Skip to content

Commit

Permalink
feat: make io client idleTimeout a noop
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Nov 2, 2024
1 parent 0d5096d commit a6a3de1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rhttp/lib/src/client/io/io_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ class IoCompatibleClient implements HttpClient {
client.settings.timeoutSettings?.keepAliveTimeout ?? Duration.zero;

@override
set idleTimeout(Duration d) =>
throw UnimplementedError("idleTimeout is immutable");
set idleTimeout(Duration d) {
// noop
}

@override
int? maxConnectionsPerHost;
Expand Down

0 comments on commit a6a3de1

Please sign in to comment.