Skip to content

Commit fa53651

Browse files
authored
Document that RetryClient may consume a lot of memory (#915)
1 parent 877f134 commit fa53651

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkgs/http/lib/retry.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import 'package:async/async.dart';
1010
import 'http.dart';
1111

1212
/// An HTTP client wrapper that automatically retries failing requests.
13+
///
14+
/// NOTE: [RetryClient] makes a copy of the request data in order to support
15+
/// resending it. This can cause a lot of memory usage when sending a large
16+
/// [StreamedRequest].
1317
class RetryClient extends BaseClient {
1418
/// The wrapped client.
1519
final Client _inner;

0 commit comments

Comments
 (0)