Skip to content
Permalink
Browse files
Backportable targeted fix for serf spin: apache/incubator-pagespeed-n…
  • Loading branch information
hillsp authored and crowell committed Jul 21, 2016
1 parent ae11893 commit 921fd719a1c762daae9aaa28d8b87e6c27497731
Showing with 3 additions and 0 deletions.
  1. +3 −0 pagespeed/system/serf_url_async_fetcher.cc
@@ -591,6 +591,9 @@ apr_status_t SerfFetch::ReadBody(serf_bucket_t* response) {
apr_size_t bytes_to_flush = 0;
while (MoreDataAvailable(status) && (async_fetch_ != NULL)) {
status = serf_bucket_read(response, SERF_READ_ALL_AVAIL, &data, &len);
if (APR_STATUS_IS_EAGAIN(status)) {
break;
}
bytes_received_ += len;
bytes_to_flush += len;
if (IsStatusOk(status) && (len != 0) &&

0 comments on commit 921fd71

Please sign in to comment.