Error with cassandra #63

Closed
tarzanjw opened this Issue Jun 26, 2014 · 3 comments

Projects

None yet

3 participants

@tarzanjw

I get in error when use waitress with cassandra (https://github.com/datastax/python-driver), it is something about asyncore.

I do not know it's problem of cassandra-driver or waitress, please help me to detect it.

I posted my python script and the log to gist, here it is:

To reproduce errors, access to http://localhost:8080 after run script, the error will then randomly occur.

Thanks a lot

@bertjwregeer
Member

@mcdonc and I were discussing this on IRC, we never came to a conclusion, the issue though is that both waitress and that cassandra driver are using asyncore and they are stepping on each others toes.

@tarzanjw

Thanks for reply, I tried to change cassandra to use libev instead of asyncore and everything was fine.

@mcdonc mcdonc added a commit that referenced this issue Jul 14, 2014
@mcdonc mcdonc - Use a nonglobal asyncore socket map by default to hopefully prevent…
… conflicts

  with apps and libs that use the asyncore global socket map ala
  #63.  You can get the old
  use-global-socket-map behavior back by passing ``asyncore.socket_map`` to the
  ``create_server`` function as the ``map`` argument.

See #63
5b70bd3
@mcdonc
Member
mcdonc commented Jul 14, 2014

I'm going to close this issue, as @tarzanjw indicates he has found a workaround by using a libev-backed Cassandra lib, and the commit I just made above might allow an asyncore-backed Cassandra lib to run together with waitress too.

@mcdonc mcdonc closed this Jul 14, 2014
@pcdude2143 pcdude2143 pushed a commit to pcdude2143/dotfiles that referenced this issue Jul 20, 2014
Michael Shepard Squashed '.vim/bundle/YouCompleteMe.vim/third_party/waitress/' change…
…s from 3fab205..77698fb

77698fb - If an ``application`` value of ``None`` is supplied to the ``create_server``   constructor function, a ValueError is now raised eagerly instead of an error   occuring during runtime.  See Pylons/waitress#60
769c151 Add a ``docs`` section to tox.ini that, when run, ensures docs can be built.
0feff7a Add a ``docs`` section to tox.ini that, when run, ensures docs can be built.
d9eb9db change tests based on code changes and make more assertions
1e96d1d Merge branch 'master' of github.com:eli-collins/waitress into eli-collins-master
5b70bd3 - Use a nonglobal asyncore socket map by default to hopefully prevent conflicts   with apps and libs that use the asyncore global socket map ala   Pylons/waitress#63.  You can get the old   use-global-socket-map behavior back by passing ``asyncore.socket_map`` to the   ``create_server`` function as the ``map`` argument.
6c52026 Fix: start_response() should only re-raise exc_info if headers have been written

git-subtree-dir: .vim/bundle/YouCompleteMe.vim/third_party/waitress
git-subtree-split: 77698fbf35376bdd530493e5db262c256ebe87c4
d0a1868
@pcdude2143 pcdude2143 pushed a commit to pcdude2143/dotfiles that referenced this issue Dec 30, 2014
Michael Shepard Squashed '.vim/bundle/YouCompleteMe.vim/third_party/waitress/' change…
…s from 3fab205..eaaeeb5

eaaeeb5 Add Travis config.
3f7dc98 Add support for Python 3.4, PyPy3.
faa63fd Merge pull request #77 from msabramo/patch-1
a7389da index.rst: Add syntax highlighting
381f7ff Merge pull request #72 from tritium21/patch-1
2399d93 Update setup.py
77698fb - If an ``application`` value of ``None`` is supplied to the ``create_server``   constructor function, a ValueError is now raised eagerly instead of an error   occuring during runtime.  See Pylons/waitress#60
769c151 Add a ``docs`` section to tox.ini that, when run, ensures docs can be built.
0feff7a Add a ``docs`` section to tox.ini that, when run, ensures docs can be built.
d9eb9db change tests based on code changes and make more assertions
1e96d1d Merge branch 'master' of github.com:eli-collins/waitress into eli-collins-master
5b70bd3 - Use a nonglobal asyncore socket map by default to hopefully prevent conflicts   with apps and libs that use the asyncore global socket map ala   Pylons/waitress#63.  You can get the old   use-global-socket-map behavior back by passing ``asyncore.socket_map`` to the   ``create_server`` function as the ``map`` argument.
6c52026 Fix: start_response() should only re-raise exc_info if headers have been written

git-subtree-dir: .vim/bundle/YouCompleteMe.vim/third_party/waitress
git-subtree-split: eaaeeb503ce143a67a56011e018dd7c013ddeef0
0fb4699
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment