Commit 779dc6e
Stop leaking file descriptors for HTTP clients
Previously, we would wait for a Future to terminate before destroying
the underlying raw socket. If that future never terminated, we would
leak the underlying file descriptor.
Now, the "force" codepath in close destroys the socket immediately
(similar to what it did previously for active sockets) and the non-force
codepath has a timeout, as requested by a TODO comment.
Change-Id: I021a93a40e4708ce93b4f1ae6c3f7289764bd69f
Reviewed-on: https://dart-review.googlesource.com/54442
Reviewed-by: Zach Anderson <[email protected]>
Commit-Queue: Adam Barth <[email protected]>1 parent b294e48 commit 779dc6e
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1766 | 1766 | | |
1767 | 1767 | | |
1768 | 1768 | | |
1769 | | - | |
1770 | | - | |
| 1769 | + | |
1771 | 1770 | | |
1772 | 1771 | | |
1773 | 1772 | | |
| |||
1885 | 1884 | | |
1886 | 1885 | | |
1887 | 1886 | | |
1888 | | - | |
1889 | | - | |
1890 | | - | |
1891 | 1887 | | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
1892 | 1891 | | |
1893 | 1892 | | |
1894 | 1893 | | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
1895 | 1898 | | |
1896 | 1899 | | |
1897 | 1900 | | |
| |||
0 commit comments