fluent-plugin-concat icon indicating copy to clipboard operation
fluent-plugin-concat copied to clipboard

Use Thread::Mutex to resolve race condition

Open okkez opened this issue 8 years ago • 2 comments

The problematic sequence:

  1. Add last line to @buffer
  2. Call flush_buffer in flush_timeout_buffer (via periodical timer)
  3. flush_buffer

Sequence 2 and 3 may race.

okkez avatar Sep 27 '17 04:09 okkez

has this race otherwise been resolved?

jdef avatar Sep 09 '20 16:09 jdef

This is very rare case. I cannot reproduce this race condition in my environment.

okkez avatar Sep 11 '20 07:09 okkez