Since it is locked only when writing, it may be closed by anothre thread
while reading or writing. In actual we often get the following error
when we are processing massive messages by fluent-plugin-mqtt-io:
IOError,stream closed in another thread
This commit ensure to protect all atomic operations of the socket.
Since it is locked only when writing, it may be closed by anothre thread while reading or writing. In actual we often get the following error when we are processing massive messages by fluent-plugin-mqtt-io:
IOError,stream closed in another thread
This commit ensure to protect all atomic operations of the socket.