From 8c0ce736d8b7518b7db83912265ae2904893d221 Mon Sep 17 00:00:00 2001 From: Jim Paris Date: Fri, 22 Feb 2013 17:18:36 -0500 Subject: [PATCH] Disable use of signals in Curl Various places suggest that this is needed for better thread-safety, and the only drawback is that some systems cannot timeout properly on DNS lookups. --- nilmdb/client/httpclient.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nilmdb/client/httpclient.py b/nilmdb/client/httpclient.py index 13ecedc..5845944 100644 --- a/nilmdb/client/httpclient.py +++ b/nilmdb/client/httpclient.py @@ -23,6 +23,7 @@ class HTTPClient(object): self.curl.setopt(pycurl.SSL_VERIFYHOST, 2) self.curl.setopt(pycurl.FOLLOWLOCATION, 1) self.curl.setopt(pycurl.MAXREDIRS, 5) + self.curl.setopt(pycurl.NOSIGNAL, 1) self._setup_url() def _setup_url(self, url = "", params = ""):