Skip to content

Commit

Permalink
Merge branch 'jedesah-bug/connection_closed'
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerian Barbot committed Oct 15, 2014
2 parents 3741e1f + 3aa9400 commit b0a01a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/redis/actors/RedisWorkerIO.scala
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ abstract class RedisWorkerIO(val address: InetSocketAddress) extends Actor with
}
case a: InetSocketAddress => onAddressChanged(a)
case c: ConnectionClosed => {
if(sender == tcpWorker)
if(sender == tcpWorker) {
tcpWorker ! ConfirmedClose // close the sending direction of the connection (TCP FIN)
onConnectionClosed(c)
}
else
onClosingConnectionClosed()
}
Expand Down

0 comments on commit b0a01a0

Please sign in to comment.