Mercurial > lbo > hg > geohub
changeset 147:51004e96b2d0 default tip
track_ICE: Reduce sending timeout
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Thu, 25 Aug 2022 11:45:46 +0200 |
parents | 9b86bc651228 |
children | |
files | examples/track_ICE/collect.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/track_ICE/collect.py Mon Aug 08 17:35:39 2022 +0200 +++ b/examples/track_ICE/collect.py Thu Aug 25 11:45:46 2022 +0200 @@ -35,7 +35,7 @@ info.pop(k) url = geohub_url + additional try: - sess.post(url, json=info) + sess.post(url, json=info, timeout=args.interval/2) except Exception as e: eprint('Failed sending point; giving up for now') return