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

Unified Diff: runtime/bin/vmstats_impl.cc

Issue 12328122: Used Socket::Read instead of FdUtils::ReadFromBlocking, since FdUtils (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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: runtime/bin/vmstats_impl.cc
===================================================================
--- runtime/bin/vmstats_impl.cc (revision 19096)
+++ runtime/bin/vmstats_impl.cc (working copy)
@@ -157,11 +157,7 @@
// Read request.
// TODO(tball): support partial reads, possibly needed for POST uploads.
char buffer[BUFSIZE + 1];
- size_t count = FDUtils::AvailableBytes(socket);
- if (count > BUFSIZE) {
- count = BUFSIZE;
- }
- intptr_t len = FDUtils::ReadFromBlocking(socket, buffer, count);
+ intptr_t len = Socket::Read(socket, buffer, BUFSIZE);
if (len <= 0) {
// Invalid HTTP request, ignore.
continue;
« 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