ivukotic/plugins

Race condition in MonitorChannelHandler

Closed this issue · 1 comments

MonitorChannelHandler contains a static fileCounter field. This field is incremented, with a wraparound at 9999999:

fileCounter = (fileCounter + 1) % 9999999;

Since the field is shared between many handler instances and requests are processed by different threads, this increment is not thread safe.

fixed.