Ignore:
Timestamp:
Feb 7, 2017, 10:08:56 AM (9 years ago)
Author:
Carlos Garcia Campos
Message:

[Soup] WebKitSoupRequestInputStream can still leave requests unfinished after r211773
https://bugs.webkit.org/show_bug.cgi?id=167929

Reviewed by Michael Catanzaro.

The while loop to process the pending data requests was not a good idea, because having a new pending request
doesn't mean we have more data available, but that more data was requested.

  • WebProcess/soup/WebKitSoupRequestInputStream.cpp:

(webkitSoupRequestInputStreamPendingReadAsyncComplete): Process only one request if needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/WebProcess/soup/WebKitSoupRequestInputStream.cpp

    r211773 r211816  
    6464static void webkitSoupRequestInputStreamPendingReadAsyncComplete(WebKitSoupRequestInputStream* stream)
    6565{
    66     while (stream->priv->pendingAsyncRead) {
    67         auto data = WTFMove(stream->priv->pendingAsyncRead);
     66    if (auto data = WTFMove(stream->priv->pendingAsyncRead))
    6867        webkitSoupRequestInputStreamReadAsyncResultComplete(data->task.get(), data->buffer, data->count);
    69     }
    7068}
    7169
Note: See TracChangeset for help on using the changeset viewer.