Skip to content

Commit

Permalink
update fetch img timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
coldnight committed Apr 23, 2014
1 parent 67cd483 commit c2bd802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twqq/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ def generate_curl(self, url=None, headers=None):
curl.setopt(pycurl.WRITEFUNCTION, buff.write)
curl.setopt(pycurl.FOLLOWLOCATION, 1)
curl.setopt(pycurl.MAXREDIRS, 5)
curl.setopt(pycurl.TIMEOUT, 1)
curl.setopt(pycurl.CONNECTTIMEOUT, 1)
curl.setopt(pycurl.TIMEOUT, 3)
curl.setopt(pycurl.CONNECTTIMEOUT, 3)

if url:
curl.setopt(pycurl.URL, url)
Expand Down

0 comments on commit c2bd802

Please sign in to comment.