netty5/transport/src
Trustin Lee 69e25d21f6 Make PendingWriteQueue.recycle() update its state before triggering an event
Related: #3212

Motivation:

PendingWriteQueue.recycle() updates its data structure after triggering
a channelWritabilityChanged() event. It causes a rare corruption such as
double free when channelWritabilityChanged() method accesses the
PendingWriteQueue.

Modifications:

Update the state of PendingWriteQueue before triggering an event.

Result:

Fix a rare double-free problem
2014-12-07 23:24:19 +09:00
..
main/java/io/netty Make PendingWriteQueue.recycle() update its state before triggering an event 2014-12-07 23:24:19 +09:00
test/java/io/netty Make PendingWriteQueue.recycle() update its state before triggering an event 2014-12-07 23:24:19 +09:00