From a6a3de12e1a72dfd8c462463f2f939db6c07ab6e Mon Sep 17 00:00:00 2001 From: Tien Do Nam Date: Sat, 2 Nov 2024 15:02:51 +0100 Subject: [PATCH] feat: make io client idleTimeout a noop --- rhttp/lib/src/client/io/io_client.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rhttp/lib/src/client/io/io_client.dart b/rhttp/lib/src/client/io/io_client.dart index 8e184eb..d03d01d 100644 --- a/rhttp/lib/src/client/io/io_client.dart +++ b/rhttp/lib/src/client/io/io_client.dart @@ -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;