You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following traceback occasionally. I'm wondering whether this
should be handled using the auto-retry stuff?
File "/home/jason/django_projects/netspade/blog/model.py", line 32, in
num_comments
rows = list(db.view('_view/comments/count', group=True)[self.id])
File "/usr/lib/python2.5/site-packages/CouchDB-0.5dev_r117-
py2.5.egg/couchdb/client.py", line 722, in __len__
return len(self.rows)
File "/usr/lib/python2.5/site-packages/CouchDB-0.5dev_r117-
py2.5.egg/couchdb/client.py", line 733, in _get_rows
self._fetch()
File "/usr/lib/python2.5/site-packages/CouchDB-0.5dev_r117-
py2.5.egg/couchdb/client.py", line 725, in _fetch
data = self.view._exec(self.options)
File "/usr/lib/python2.5/site-packages/CouchDB-0.5dev_r117-
py2.5.egg/couchdb/client.py", line 621, in _exec
resp, data = self.resource.get(**self._encode_options(options))
File "/usr/lib/python2.5/site-packages/CouchDB-0.5dev_r117-
py2.5.egg/couchdb/client.py", line 801, in get
return self._request('GET', path, headers=headers, **params)
File "/usr/lib/python2.5/site-packages/CouchDB-0.5dev_r117-
py2.5.egg/couchdb/client.py", line 836, in _request
resp, data = _make_request()
File "/usr/lib/python2.5/site-packages/CouchDB-0.5dev_r117-
py2.5.egg/couchdb/client.py", line 831, in _make_request
body=body, headers=headers)
File "/usr/lib/python2.5/site-packages/httplib2-0.4.0-
py2.5.egg/httplib2/__init__.py", line 1050, in request
File "/usr/lib/python2.5/site-packages/httplib2-0.4.0-
py2.5.egg/httplib2/__init__.py", line 854, in _request
File "/usr/lib/python2.5/site-packages/httplib2-0.4.0-
py2.5.egg/httplib2/__init__.py", line 824, in _conn_request
File "/usr/lib/python2.5/httplib.py", line 928, in getresponse
response.begin()
File "/usr/lib/python2.5/httplib.py", line 385, in begin
version, status, reason = self._read_status()
File "/usr/lib/python2.5/httplib.py", line 343, in _read_status
line = self.fp.readline()
File "/usr/lib/python2.5/socket.py", line 372, in readline
data = recv(1)
timeout: timed out
Original issue reported on code.google.com by jason.da...@gmail.com on 26 Oct 2008 at 9:39
The text was updated successfully, but these errors were encountered:
I don't think I'd want to automatically retry timed out requests, as the call
has probably blocked long enough at
that point, and a timeout oftne points at a configuration problem.
Maybe it should be possible to configure the auto-retry behavior.
For me, adding errno.ECONNABORTED to ecode acceptable error numbers had solved
timeout issue.
Will be provided some custom control for such situations in future?
Original comment by kxepal on 10 May 2010 at 10:19
Retry timeouts and the errors that are considered retryable can now be
configured via a couchdb.http.Session that is passed to the Server or Database
instance.
In fact, by default, ECONNABORTED will cause one immediate retry before raising
an exception.
Original comment by matt.goo...@gmail.com on 8 Jul 2010 at 8:51
Original issue reported on code.google.com by
jason.da...@gmail.com
on 26 Oct 2008 at 9:39The text was updated successfully, but these errors were encountered: