SoupHTTPInputStream: don't burn through GCancellable fds
SoupSession limits the number of outgoing TCP connections, but SoupRequestHTTP/SoupHTTPInputStream were still using a file descriptor for the GCancellable of each request that got queued, even before it was sent. This meant that if the app queued 1000ish requests all at once (eg, while rendering an HTML page with *lots* of images), we would run out of file descriptors. Fix this by just using the GCancellable::cancelled signal rather than g_cancellable_get_fd(). https://bugzilla.gnome.org/show_bug.cgi?id=668508
parent
5c20e818
Please register or sign in to comment