mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-23 18:04:48 +03:00
Don't cache curl handles that were used to fetch https URLs; with any
luck, this should fix broken pipe crashes. svn path=/trunk/netsurf/; revision=2723
This commit is contained in:
parent
6d92ee72bd
commit
5bbd5f259e
@ -743,8 +743,12 @@ void fetch_stop(struct fetch *f)
|
||||
codem = curl_multi_remove_handle(fetch_curl_multi,
|
||||
f->curl_handle);
|
||||
assert(codem == CURLM_OK);
|
||||
/* Put this curl handle into the cache if wanted. */
|
||||
fetch_cache_handle(f->curl_handle, f->host);
|
||||
if (strncasecmp(f->url, "https:", 6)) {
|
||||
/* Put this curl handle into the cache if wanted. */
|
||||
fetch_cache_handle(f->curl_handle, f->host);
|
||||
} else {
|
||||
curl_easy_cleanup(f->curl_handle);
|
||||
}
|
||||
f->curl_handle = 0;
|
||||
/* Remove this from the active set of fetches (if it's still there) */
|
||||
RING_REMOVE(fetch_ring, f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user