Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 cb79e28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trombi/client.py
Expand Up @@ -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

Expand Down

0 comments on commit cb79e28

Please sign in to comment.