=act #22568 reduce spurious ResumeReading log messages

ResumeReading will likely end up in DeadLetters when the connection is
torn down at the same time as the user tries to read more data from the
connection.

For the same reason ResumeReading may arrive in peerSentEOF state. We
ignore it here to get rid of "unhandled message from Actor ... : ResumeReading"
warnings.

This will remove the spurious warnings in these cases.
This commit is contained in:
Johannes Rudolph 2017-03-15 16:48:20 +01:00
parent 70253fab3f
commit e915a16dbc
2 changed files with 6 additions and 1 deletions

View file

@ -102,6 +102,7 @@ private[io] abstract class TcpConnection(val tcp: TcpExt, val channel: SocketCha
def peerSentEOF(info: ConnectionInfo): Receive =
handleWriteMessages(info) orElse {
case cmd: CloseCommand handleClose(info, Some(sender()), cmd.event)
case ResumeReading // ignore, no more data to read
}
/** connection is closing but a write has to be finished first */