Find a file
Zach Anderson b4a426fa72 [dart:io] Adds HttpClient.connectionTimeout
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>
2018-06-27 20:27:08 +00:00
.github Add an issue template to the SDK 2018-04-05 13:05:09 +00:00
build Update checked-in Dart SDK to 2.0.0-dev.64.1 2018-06-25 21:39:35 +00:00
client Remove old annotated_steps buildbot scripts and dispatcher 2017-05-23 16:17:02 +02:00
docs Remove spec references to Symbol constructor. 2018-06-27 13:53:47 +00:00
pkg misc(pkg/analyzer): update to latest pkg:matcher API 2018-06-27 19:29:20 +00:00
runtime [VM] 2018-06-27 17:33:50 +00:00
samples Skip sample_extension_app_snapshot_test on opt-counter-threshold builders 2018-06-19 16:02:37 +00:00
samples-dev Remove the retype method. 2018-06-12 14:36:09 +00:00
sdk [dart:io] Adds HttpClient.connectionTimeout 2018-06-27 20:27:08 +00:00
tests [dart:io] Adds HttpClient.connectionTimeout 2018-06-27 20:27:08 +00:00
third_party [VM] Turn dart2 on by default on the command line VM 2018-06-18 22:31:32 +00:00
tools Added link to see webdev.dartlang.org 2018-06-27 19:10:24 +00:00
utils Update checked-in Dart SDK to 2.0.0-dev.64.1 2018-06-25 21:39:35 +00:00
.clang-format VM: Re-format to use at most one newline between functions 2017-07-13 08:08:37 -07:00
.gitattributes [infra] Add config for custom hunk text when using git diff on status files 2018-05-31 13:56:45 +00:00
.gitconfig [infra] Add documentation to .gitconfig 2018-06-11 18:24:16 +00:00
.gitignore Git ignore vscode project files. 2017-03-23 15:26:06 -07:00
.gn Starting work on full GN build 2016-09-23 07:47:36 -07:00
.mailmap Add .mailmap file. 2015-05-18 19:33:16 +02:00
.packages First stab at a parsing library for named configurations. 2018-06-26 22:17:08 +00:00
AUTHORS Add Cristian Almstrand to AUTHORS 2015-07-16 09:51:56 -07:00
BUILD.gn [VM] Turn dart2 on by default on the command line VM 2018-06-18 22:31:32 +00:00
CHANGELOG.md [dart:io] Adds HttpClient.connectionTimeout 2018-06-27 20:27:08 +00:00
codereview.settings Update codereview.settings to Gerrit (dart-review.googlesource.com) 2017-09-04 12:52:09 +00:00
dartdoc_options.yaml Add a 'Core' category for doc generation. 2018-06-07 14:47:41 +00:00
DEPS misc(pkg/analyzer): update to latest pkg:matcher API 2018-06-27 19:29:20 +00:00
LICENSE Remove the Dromaeo and TodoMVC samples. 2016-01-11 13:09:26 -08:00
PATENTS Move LICENSE, AUTHORS, PATENTS into the dart directory. 2014-02-10 06:48:47 +00:00
PRESUBMIT.py Fix presubmit on Windows. Dart executable is not called .bat 2018-05-02 08:40:59 +00:00
README.dart-sdk remove docgen from the sdk 2015-09-18 13:18:10 -07:00
README.md [gardening] Whitespace change to trigger bots. 2017-04-28 10:08:58 -07:00
WATCHLISTS Update WATCHLISTS to get notifications about changes in kernel and pkg/vm 2018-06-11 18:29:29 +00:00

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.

License & patents

See LICENSE and PATENTS.