Skip to content
Snippets Groups Projects
  • Erik Karlsson's avatar
    a79c88fb
    mosquitto: only write to socket pair in threaded mode · a79c88fb
    Erik Karlsson authored and Vivek Dutta's avatar Vivek Dutta committed
    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
    
    
    (cherry picked from commit 3f96b060)
    a79c88fb
    History
    mosquitto: only write to socket pair in threaded mode
    Erik Karlsson authored and Vivek Dutta's avatar Vivek Dutta committed
    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
    
    
    (cherry picked from commit 3f96b060)
0001-Only-write-to-socket-pair-in-threaded-mode.patch 1.25 KiB