~afb/smart/solaris

« back to all changes in this revision

Viewing changes to smart/fetcher.py

  • Committer: Anders F Bjorklund
  • Date: 2009-03-11 10:07:49 UTC
  • mfrom: (856.1.8 bugfix)
  • Revision ID: afb@users.sourceforge.net-20090311100749-g9n4xrouwqmbam8s
merge changes from trunk, via bugfix

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
SPEEDDELAY = 1
40
40
CANCELDELAY = 2
41
41
MAXACTIVEDOWNLOADS = 10
42
 
SOCKETTIMEOUT = 30
 
42
SOCKETTIMEOUT = 600
43
43
 
44
44
class FetcherCancelled(Error): pass
45
45
 
1655
1655
 
1656
1656
                        handle.setopt(pycurl.URL, str(url))
1657
1657
                        handle.setopt(pycurl.OPT_FILETIME, 1)
 
1658
                        handle.setopt(pycurl.TIMEOUT, SOCKETTIMEOUT)
1658
1659
                        handle.setopt(pycurl.NOPROGRESS, 0)
1659
1660
                        handle.setopt(pycurl.PROGRESSFUNCTION, progress)
1660
1661
                        handle.setopt(pycurl.WRITEDATA, local)