Copyright © https://mongoose-os.com

Mongoose OS Forum

frame

multi-process workers design

how use mongoose lib for multi-process (not threaded) design - master listener and forked worker processes (like nginx)?

Comments

  • SergeySergey Dublin, Ireland

    initialize several mg_mgr instances, each with its own listener.
    make those listeners share the same socket.

    create first listener with mg_bind(), then the rest - clone with mg_add_sock()

Sign In or Register to comment.