Permalink
Browse files

Increased tornado http timeout to 20 seconds more than couchdb timeout

when using feed=continuous with changes()
  • Loading branch information...
bjorkegeek committed Apr 30, 2012
1 parent 2736ec0 commit cb79e2834eaece0395ed25f62dd6669258e8b7cc
Showing with 2 additions and 1 deletion.
  1. +2 −1 trombi/client.py
View
@@ -673,11 +673,12 @@ def _stream(text):
couchdb_params = kw
couchdb_params['feed'] = feed
+ params = dict()
if timeout is not None:
# CouchDB takes timeouts in milliseconds
couchdb_params['timeout'] = timeout * 1000
+ params['request_timeout'] = timeout + 20
url = '_changes?%s' % urlencode(couchdb_params)
- params = dict()
if feed == 'continuous':
params['streaming_callback'] = _stream

0 comments on commit cb79e28

Please sign in to comment.