projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55f26ba
)
Add timeout and nosignal curlopts
author
Colin Leroy
<colin@colino.net>
Fri, 25 Apr 2014 13:35:37 +0000
(15:35 +0200)
committer
Colin Leroy
<colin@colino.net>
Fri, 25 Apr 2014 13:35:37 +0000
(15:35 +0200)
src/plugins/libravatar/libravatar.c
patch
|
blob
|
history
diff --git
a/src/plugins/libravatar/libravatar.c
b/src/plugins/libravatar/libravatar.c
index a7f9827951e5194b0bec607967626d4104a00dbf..780e9c95598851698f5b3776629e3e5b308fb89c 100644
(file)
--- a/
src/plugins/libravatar/libravatar.c
+++ b/
src/plugins/libravatar/libravatar.c
@@
-147,6
+147,8
@@
static GtkWidget *image_widget_from_url(const gchar *url, const gchar *md5)
}
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_image_data_cb);
+ curl_easy_setopt(eh, CURLOPT_TIMEOUT, prefs_common_get_prefs()->io_timeout_secs);
+ curl_easy_setopt(eh, CURLOPT_NOSIGNAL, 1);
filename = cache_name_for_md5(md5);
file = fopen(filename, "wb");