Files
sdk/runtime/bin
kustermann@google.com 360dfe4f41 Several bugfixes in dart:io's handing of sockets
This CL includes fixes for the following issues:

a) The event handler created listening socket metadata (values of a hashtable
indexed by filedescriptor) sometimes as SocketData and sometimes as
ListeningSocketData depending whether the socket has been listened to or not.
This was very buggy, in particular because multiple isolates can have a
reference to the same server socket in different states (opened, listened,
closed).

=> This should be fixed by sending the file descriptior typeMask always to the
   eventhandler.

b) A server socket cloned via the ServerSocketReference mechanism, opens a
receive port for sending (fd, address, port) to isolates/... which want to
create a server socket from the reference.
This receive port was not closed properly when calling only close() (and not
listening first).

=> This should be fixed by closing this receiveport on the ServerSocket.close()
   call as well.

c) It was assumed in the event handler that a close command needs to have the
Dart_Port in a hash table. But this is only the case if the user actually
listened to the ServerSocket. Otherwise the event handler does not know about
the server socket. This caused a NULL dereference which resulted in a SEGFAULT.

=> This should be fixed by checking if the Dart_Port is in the hashmap of the
ListeningSocketData or not.

d) Too many bits were considered when extracting token count in C++ code.

The CL includes a regression test which should trigger these issues.

BUG=21384,21383
R=sgjesse@google.com

Review URL: https://codereview.chromium.org//665823007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41276 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-24 08:55:50 +00:00
..
2014-09-08 15:59:30 +00:00
2014-09-09 00:10:06 +00:00
2014-09-30 23:29:26 +00:00
2014-09-30 23:29:26 +00:00
2014-04-10 20:26:45 +00:00
2013-12-13 12:04:24 +00:00
2014-09-23 05:46:14 +00:00
2014-09-23 05:46:14 +00:00
2014-06-06 12:14:15 +00:00
2013-06-21 07:58:48 +00:00
2014-08-14 05:00:37 +00:00
2014-08-14 05:00:37 +00:00
2014-08-14 05:00:37 +00:00
2014-08-14 05:00:37 +00:00
2014-08-14 05:00:37 +00:00
2013-09-19 06:33:28 +00:00
2013-09-19 06:33:28 +00:00
2013-07-16 22:17:52 +00:00