Brian Quinlan
Brian Quinlan
OK, I'm going to work on a proof-of-concept and then there is some process around breaking changes (which this will be).
The public API that I'm imagining is this: https://dart-review.googlesource.com/c/sdk/+/365664/3/sdk/lib/io/security_context.dart
I have a [change under review](https://dart-review.googlesource.com/c/sdk/+/352442/6/sdk/lib/io/file.dart) that documents the behavior that @mkustermann referred to in https://github.com/dart-lang/sdk/issues/54911#issuecomment-1945945319. The approach that I'm suggesting is: ```dart final sink = File('/tmp').openWrite(); // Can't write...
Reformulating the example as: ``` import "dart:io"; void main() { stdout.done.ignore(); // If there were more output, it would make sense to stop writing if done completes. try { stdout.writeln("Line...
I think that this is implementable now that we can drop Windows 7 support. I have a PR in progress.
Hi, As @alanrussian said, it is not unexpected for sockets to be invalidated when the app is suspended. From [Apple's Documentation](https://developer.apple.com/library/archive/technotes/tn2277/_index.html): > If you do leave your data socket open...
Someone on the Flutter team had a suggestion: we add a method to clear the connection pool on HttpClient and we ask developers to do that before their apps are...
The situations that I can think of were this error might occur are: 1. Bugs in the Dart Sockets/HttpClient implementation (hopefully rare) 2. Incorrect implementation of a user-defined [`HttpClient.connectionFactory`](https://api.dart.dev/stable/2.19.2/dart-io/HttpClient/connectionFactory.html) But,...
> @natebosch @brianquinlan @kevmoo I just dug deeper into this issue because I'm trying to use the new cronet and cupertino Httpclients. The example at https://github.com/dart-lang/http/blob/master/pkgs/flutter_http_example/lib/http_client_factory.dart returns always new instances...
> Could you explain what is really meant by this because it seems to contradict what I understand from your reply. > I hope the connection pool will shrink once...