Changeset 3330 for lliurex-statistics


Ignore:
Timestamp:
Jan 18, 2017, 9:57:07 AM (3 years ago)
Author:
mabarracus
Message:

Allow proxy usage & network timeouts when sending data

Location:
lliurex-statistics/trunk/fuentes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lliurex-statistics/trunk/fuentes/debian/changelog

    r3270 r3330  
     1lliurex-statistics (0.4) xenial; urgency=medium
     2
     3  * Allow proxy usage & network timeouts when sending data
     4
     5 -- M.Angel Juan <m.angel.juan@gmail.com>  Wed, 18 Jan 2017 09:56:08 +0100
     6
    17lliurex-statistics (0.3-4) xenial; urgency=medium
    28
  • lliurex-statistics/trunk/fuentes/debian/control

    r3002 r3330  
    88Package: lliurex-statistics
    99Architecture: all
    10 Depends: ${shlibs:Depends}, ${misc:Depends}, debconf | debconf-2.0, auditd, python-daemon, n4d, acl, lliurex-statistics-blacklist
     10Depends: ${shlibs:Depends}, ${misc:Depends}, debconf | debconf-2.0, auditd, python-daemon, n4d, acl, lliurex-statistics-blacklist, python-urllib3
    1111Replaces: lliurex-zero-installer-analytics
    1212Conflicts: lliurex-zero-installer-analytics
  • lliurex-statistics/trunk/fuentes/lliurex-statistics.install/usr/sbin/analytics

    r2966 r3330  
    1717import lockfile
    1818import xmlrpclib
     19import urllib
    1920
    2021######### END CONFIG ###########
     
    295296        debug("Error debugging data to send")
    296297
    297     r = requests.post(url,data=payload,headers=headers);
     298    r = requests.post(url,data=payload,headers=headers,proxies=urllib.getproxies(),timeout=5);
    298299    debug("S("+r.text+')',2);
    299300#END def send_data():
Note: See TracChangeset for help on using the changeset viewer.