Mercurial > code > home > repos > light9
diff bin/subserver @ 976:cfc748f4ad2e
add timeout from subserver to vidref
Ignore-this: 9077c67cbbc43eef8a2c7ef080dbca7c
author | drewp@bigasterisk.com |
---|---|
date | Sat, 15 Jun 2013 21:25:22 +0000 |
parents | 891f2d75c686 |
children | a4632a7b2e17 |
line wrap: on
line diff
--- a/bin/subserver Sat Jun 15 21:25:13 2013 +0000 +++ b/bin/subserver Sat Jun 15 21:25:22 2013 +0000 @@ -76,7 +76,7 @@ @defer.inlineCallbacks def post(self): about = URIRef(self.get_argument("about")) - response = yield cyclone.httpclient.fetch(networking.vidref.path("snapshot"), method="POST") + response = yield cyclone.httpclient.fetch(networking.vidref.path("snapshot"), method="POST", timeout=1) snapUri = URIRef(json.loads(response.body)['snapshot']) # vidref could write about when it was taken, etc. would it be