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

Unified Diff: sdk/lib/io/http_impl.dart

Issue 821123008: Remove the explicit scheduling of HTTP requests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/io/http_impl.dart
diff --git a/sdk/lib/io/http_impl.dart b/sdk/lib/io/http_impl.dart
index 5c49c2f469bf355be603faf03c90e291ca115df6..846cd6b3a8193fb3f9acf0871fa0060dd13539ae 100644
--- a/sdk/lib/io/http_impl.dart
+++ b/sdk/lib/io/http_impl.dart
@@ -2301,15 +2301,11 @@ class _HttpServer
}
void _handleRequest(_HttpRequest request) {
- // Delay the request until the isolate's message-queue is handled.
- // This greatly improves scheduling when a lot of requests are active.
- Timer.run(() {
- if (!closed) {
- _controller.add(request);
- } else {
- request._httpConnection.destroy();
- }
- });
+ if (!closed) {
+ _controller.add(request);
+ } else {
+ request._httpConnection.destroy();
+ }
}
void _handleError(error) {
« 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