Skip to content

Commit

Permalink
Unix Domain Socket - Deregister interest in READ when reaching EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
longshorej committed Jun 29, 2018
1 parent 3b06c06 commit 235f238
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ object UnixDomainSocket extends ExtensionId[UnixDomainSocket] with ExtensionIdPr
sendReceiveContext.receive = PendingReceiveAck(queue, buffer, pendingResult)
key.interestOps(key.interestOps() & ~SelectionKey.OP_READ)
} else {
key.interestOps(key.interestOps() & ~SelectionKey.OP_READ)
queue.complete()
}
case PendingReceiveAck(receiveQueue, receiveBuffer, pendingResult) if pendingResult.isCompleted =>
Expand Down

0 comments on commit 235f238

Please sign in to comment.