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

Only write to socket pair in threaded mode #3062

Open
wants to merge 1 commit into
base: fixes
Choose a base branch
from

Commits on Jun 7, 2024

  1. Only write to socket pair in threaded mode

    Otherwise it is possible to write to the socket pair when there is no
    consumer resulting in the buffer growing indefinitely. This issue
    manifests itself when an external event loop is used together with
    mosquitto_loop_read/mosquitto_loop_write/mosquitto_loop_misc instead
    of using mosquitto_loop, mosquitto_loop_forever or threaded mode with
    mosquitto_loop_start/mosquitto_loop_stop
    
    Signed-off-by: Erik Karlsson <[email protected]>
    Erik Karlsson committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    f2ce539 View commit details
    Browse the repository at this point in the history