Browse Source

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.
tags/nilmdb-1.2
Jim Paris 11 years ago
parent
commit
8c0ce736d8
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      nilmdb/client/httpclient.py

+ 1
- 0
nilmdb/client/httpclient.py View File

@@ -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 = ""):


Loading…
Cancel
Save