Copyright ©

Mongoose OS Forum


multi-process workers design

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


  • 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.