Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout error - should it be handled by auto-retry stuff? #29

Closed
GoogleCodeExporter opened this issue Nov 18, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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.

Original comment by cmlenz on 1 Jul 2009 at 3:22

@GoogleCodeExporter
Copy link
Author

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

Attachments:

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant