Skip to content

mongrel2 crashes on multiple handlers #1

@javierguerragiraldez

Description

@javierguerragiraldez

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions