mirror of
https://github.com/dart-lang/sdk
synced 2024-10-04 19:18:27 +00:00
b4a426fa72
This is the first part of a two part change for fixing a file descriptor leak when using HttpClient with a flaky network connection. There are two ways to use HttpClient. The first way is to allocate and close an HttpClient for each request. The second way is to allocate an HttpClient and use it to make several requests. This change addresses leaks that can happen when using it the second way. A subsequent change will address leaks that can happen when using it the first way. This change adds a field connectionTimeout to HttpClient. Users of HttpClient can set this field to indicate the `timeout` parameter that should be passed to calls to {SecureSocket,Socket}.connect() for new http connections. If the field is not set, the OS default is used. related https://github.com/flutter/flutter/issues/18617 Change-Id: I26ae2fce7d28273923d1af697c93d987e3e4a38a Reviewed-on: https://dart-review.googlesource.com/62484 Commit-Queue: Zach Anderson <zra@google.com> Reviewed-by: Ryan Macnak <rmacnak@google.com> Reviewed-by: Siva Annamalai <asiva@google.com> |
||
---|---|---|
.github | ||
build | ||
client | ||
docs | ||
pkg | ||
runtime | ||
samples | ||
samples-dev | ||
sdk | ||
tests | ||
third_party | ||
tools | ||
utils | ||
.clang-format | ||
.gitattributes | ||
.gitconfig | ||
.gitignore | ||
.gn | ||
.mailmap | ||
.packages | ||
AUTHORS | ||
BUILD.gn | ||
CHANGELOG.md | ||
codereview.settings | ||
dartdoc_options.yaml | ||
DEPS | ||
LICENSE | ||
PATENTS | ||
PRESUBMIT.py | ||
README.dart-sdk | ||
README.md | ||
WATCHLISTS |
Dart
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Using Dart
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.
Building Dart
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
Contributing to Dart
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.