Merge branch 'master' of github.com:akka/akka

This commit is contained in:
Roland 2012-06-25 11:27:22 +02:00
commit 508b108afc

View file

@ -206,7 +206,8 @@ private[zeromq] class ConcurrentSocketActor(params: Seq[SocketOption]) extends A
}
result match {
case null
if (currentFrames.isEmpty) currentFrames
if (socket.hasReceiveMore) receiveMessage(mode, currentFrames)
else if (currentFrames.isEmpty) currentFrames
else throw new IllegalStateException("no more frames available while socket.hasReceivedMore==true")
case bytes
val frames = currentFrames :+ Frame(if (bytes.length == 0) noBytes else bytes)