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

mongrel2 crashes on multiple handlers #1

Open
javierguerragiraldez opened this issue May 7, 2011 · 3 comments
Open

mongrel2 crashes on multiple handlers #1

javierguerragiraldez opened this issue May 7, 2011 · 3 comments

Comments

@javierguerragiraldez
Copy link

I'm trying to start more than one handler on the same 0MQ port; but as soon as the second one is connected, mongrel2 crashes with

Assertion failed: !engine (session.cpp:288)

session.cpp is a 0MQ file where the assertion seems to protect against attaching two 'engine' objects to the same session. I don't know enough about 0MQ internals to interpret the cause :-(

I don't know if it's related; but in your library, the sender_id is used only on the PULL socket, but reading the Python, Lua, and PHP Mongrel2 libraries, it seems they all use it on the SUB socket. I tried to change your code to do the same; but then it never received Mongrel messages.

@derdewey
Copy link
Owner

Very interesting. I will look in to it sometime this week. Thanks for the report!

Also: could you possibly attach your code?

@derdewey
Copy link
Owner

Follow up -- did you start mongrel2_init with threads enabled? mongrel2_init(0) vs mongrel2_init(1).

@derdewey derdewey reopened this May 19, 2011
@javierguerragiraldez
Copy link
Author

Hi, i'm using mongrel2_init(1).

I haven't been doing more tests, mostly waiting until the new tnetstring based protocol settles down...

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

No branches or pull requests

2 participants