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

Allow proxy usage & network timeouts when sending data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.