| Index: sdk/lib/io/http_impl.dart
|
| diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
|
| index 841a614674acb88976deca0d2a23e3db31570748..de860bcb6791853d62ca67c154e1206e3cab2162 100644
|
| --- a/sdk/lib/io/http_impl.dart
|
| +++ b/sdk/lib/io/http_impl.dart
|
| @@ -1733,7 +1733,7 @@ class _SocketConnection {
|
| _socket.onData = _invalidate;
|
| _socket.onClosed = _invalidate;
|
| _socket.onError = (_) => _invalidate();
|
| - _returnTime = new Date.now();
|
| + _returnTime = new DateTime.now();
|
| _httpClientConnection = null;
|
| }
|
|
|
| @@ -1752,7 +1752,7 @@ class _SocketConnection {
|
| _socket.close();
|
| }
|
|
|
| - Duration _idleTime(Date now) => now.difference(_returnTime);
|
| + Duration _idleTime(DateTime now) => now.difference(_returnTime);
|
|
|
| bool get _fromPool => _returnTime != null;
|
|
|
| @@ -1766,7 +1766,7 @@ class _SocketConnection {
|
| String _host;
|
| int _port;
|
| Socket _socket;
|
| - Date _returnTime;
|
| + DateTime _returnTime;
|
| bool _valid = true;
|
| HttpClientConnection _httpClientConnection;
|
| }
|
| @@ -2103,7 +2103,7 @@ class _HttpClient implements HttpClient {
|
| // If there is currently no eviction timer start one.
|
| if (_evictionTimer == null) {
|
| void _handleEviction(Timer timer) {
|
| - Date now = new Date.now();
|
| + DateTime now = new DateTime.now();
|
| List<String> emptyKeys = new List<String>();
|
| _openSockets.forEach(
|
| (String key, Queue<_SocketConnection> connections) {
|
|
|