[Commits] [SCM] claws branch, master, updated. 3.9.3-99-gbcb7994

colin at claws-mail.org colin at claws-mail.org
Fri Apr 25 15:35:53 CEST 2014


The branch master of project "claws" (Claws Mail) has been updated
       via  bcb7994183445ea2ae2a2cb6431847ffa6dfc15b (commit)
      from  55f26ba28398c67c4658f5c48f21b598356e52ef (commit)


- Log -----------------------------------------------------------------
commit bcb7994183445ea2ae2a2cb6431847ffa6dfc15b
Author: Colin Leroy <colin at colino.net>
Date:   Fri Apr 25 15:35:37 2014 +0200

    Add timeout and nosignal curlopts

diff --git a/src/plugins/libravatar/libravatar.c b/src/plugins/libravatar/libravatar.c
index a7f9827..780e9c9 100644
--- 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");

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/libravatar/libravatar.c |    2 ++
 1 file changed, 2 insertions(+)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list