Chromium Code Reviews| Index: runtime/bin/socket_patch.dart |
| diff --git a/runtime/bin/socket_patch.dart b/runtime/bin/socket_patch.dart |
| index 23e3f9e200269a9b5423cf64a983c5330fc1af31..6bfb3e4e50794663f88cfa185397520b3cb93555 100644 |
| --- a/runtime/bin/socket_patch.dart |
| +++ b/runtime/bin/socket_patch.dart |
| @@ -568,13 +568,7 @@ class _NativeSocket extends _NativeSocketNativeWrapper with _ServiceObject { |
| return null; |
| } |
| if (result != null) { |
|
Søren Gjesse
2014/09/15 08:20:32
Please add a comment that available is only the si
Anders Johnsen
2014/09/15 08:21:37
Done.
|
| - if (Platform.isMacOS) { |
| - // Mac includes the header size, so we need to query the actual |
| - // available. |
| - available = nativeAvailable(); |
| - } else { |
| - available -= result.data.length; |
| - } |
| + available = nativeAvailable(); |
| totalRead += result.data.length; |
| } |
| readCount++; |