Skip to content

concurrent modification of ChannelsLimiter.java #2141

Answered by FMX
buska88 asked this question in Q&A
Discussion options

You must be logged in to vote

isPaused is synced because channels might be modified when changing the flag isPaused. That will cause some channels to remain in the wrong auto-read state. The channel limiter needs to make sure that changing all channels' auto-read state and changing the isPause flag is an atomic operation.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by buska88
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants