Merge pull request #25548 from Kambius/fix/sequence-number-overflow

Fix SelectionHandler sequenceNumber overflow,  #25546
This commit is contained in:
Johan Andrén 2018-09-03 09:00:23 +02:00 committed by GitHub
commit 35442b4621
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -258,7 +258,7 @@ private[io] class SelectionHandler(settings: SelectionHandlerSettings) extends A
import SelectionHandler._
import settings._
private[this] var sequenceNumber = 0
private[this] var sequenceNumber = 0L // should be Long to prevent overflow
private[this] var childCount = 0
private[this] val registry = {
val dispatcher = context.system.dispatchers.lookup(SelectorDispatcher)