ab56da71cee814d6ea31442be3a150f8535c9ef4
We can't report the "server already started" error prior to the call to WebSocketTransformer.upgrade(), because it's possible that a different client will successfully establish a connection during the upgrade process. Instead, check after the call to upgrade(). This means that if there is an error, we have to report it via a RequestError object rather than using an HTTP error. When we add stdio as a transport mechanism, this will have the further advantage of allowing the "server already started" error to be detected by code that is independent of the transport mechanism. R=brianwilkerson@google.com Review URL: https://codereview.chromium.org//237793002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35046 260f80e4-7a28-3924-810f-c04153c831b5
…
This is the repository of the Dart programming language and its associated tools, libraries, and samples. For license information, please see LICENSE. You can find more about Dart online at http://dartlang.org or http://code.google.com/p/dart. Here's a brief guide to what's in here: editor/ Eclipse-based standalone Dart IDE. lib/ Libraries that ship with the Dart runtime (core, html, etc.). pkg/ Packages that are not shipped with the core runtime. runtime/ Dart VM and code for running it as a standalone app. samples/ Sample Dart programs. tests/ Automated tests. third_party/ External dependencies. tools/ Build scripts, text editor support files, etc. utils/ Utilities for Dart applications.
Description
Languages
Dart
84.6%
C++
13%
Python
0.7%
JavaScript
0.5%
HTML
0.4%
Other
0.5%