changeset 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 527b592b482a
children c0b09a24f6ca
files bin/subserver
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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