| Index: runtime/bin/vmstats_impl.cc
|
| ===================================================================
|
| --- runtime/bin/vmstats_impl.cc (revision 19343)
|
| +++ runtime/bin/vmstats_impl.cc (working copy)
|
| @@ -149,6 +149,7 @@
|
| // Stop() closed the socket.
|
| return;
|
| }
|
| + Socket::SetBlocking(socket);
|
|
|
| // TODO(tball): rewrite this to use STL, so as to eliminate the static
|
| // buffer and support resource URLs that are longer than BUFSIZE.
|
| @@ -160,10 +161,6 @@
|
| // Invalid HTTP request, ignore.
|
| continue;
|
| }
|
| - intptr_t n;
|
| - while ((n = Socket::Read(socket, buffer + len, BUFSIZE - len)) > 0) {
|
| - len += n;
|
| - }
|
| buffer[len] = '\0';
|
|
|
| // Verify it's a GET request.
|
|
|