Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Side by Side Diff: sdk/lib/io/http_impl.dart

Issue 50783003: Fix HttpServer after SecureServerSocket no longer is a ServerSocket. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io; 5 part of dart.io;
6 6
7 class _HttpIncoming extends Stream<List<int>> { 7 class _HttpIncoming extends Stream<List<int>> {
8 final int _transferLength; 8 final int _transferLength;
9 final Completer _dataCompleter = new Completer(); 9 final Completer _dataCompleter = new Completer();
10 Stream<List<int>> _stream; 10 Stream<List<int>> _stream;
(...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after
2093 } 2093 }
2094 }); 2094 });
2095 return result; 2095 return result;
2096 } 2096 }
2097 2097
2098 _HttpSessionManager _sessionManagerInstance; 2098 _HttpSessionManager _sessionManagerInstance;
2099 2099
2100 // Indicated if the http server has been closed. 2100 // Indicated if the http server has been closed.
2101 bool closed = false; 2101 bool closed = false;
2102 2102
2103 // The server listen socket. 2103 // The server listen socket. Untyped as it can be both ServerSocket and
2104 final ServerSocket _serverSocket; 2104 // SecureServerSocket.
2105 final _serverSocket;
2105 final bool _closeServer; 2106 final bool _closeServer;
2106 2107
2107 // Set of currently connected clients. 2108 // Set of currently connected clients.
2108 final LinkedList<_HttpConnection> _connections 2109 final LinkedList<_HttpConnection> _connections
2109 = new LinkedList<_HttpConnection>(); 2110 = new LinkedList<_HttpConnection>();
2110 StreamController<HttpRequest> _controller; 2111 StreamController<HttpRequest> _controller;
2111 // TODO(ajohnsen): Use close queue? 2112 // TODO(ajohnsen): Use close queue?
2112 } 2113 }
2113 2114
2114 2115
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
2512 final Uri location; 2513 final Uri location;
2513 } 2514 }
2514 2515
2515 String _getHttpVersion() { 2516 String _getHttpVersion() {
2516 var version = Platform.version; 2517 var version = Platform.version;
2517 // Only include major and minor version numbers. 2518 // Only include major and minor version numbers.
2518 int index = version.indexOf('.', version.indexOf('.') + 1); 2519 int index = version.indexOf('.', version.indexOf('.') + 1);
2519 version = version.substring(0, index); 2520 version = version.substring(0, index);
2520 return 'Dart/$version (dart:io)'; 2521 return 'Dart/$version (dart:io)';
2521 } 2522 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698