Changeset - cfc748f4ad2e
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 12 years ago 2013-06-15 21:25:22
drewp@bigasterisk.com
add timeout from subserver to vidref
Ignore-this: 9077c67cbbc43eef8a2c7ef080dbca7c
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
bin/subserver
Show inline comments
 
@@ -73,13 +73,13 @@ class Static(PrettyErrorHandler, cyclone
 
            '/usr/bin/coffee', '--compile', '--print', src]))
 

	
 
class Snapshot(PrettyErrorHandler, cyclone.web.RequestHandler):
 
    @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
 
        # better for us to tell vidref where to attach the result in
 
        # the graph, and then it doesn't even have to return anything?
 

	
0 comments (0 inline, 0 general)