alexdoth/fyrie-redis — Issue #1: RedisClientWorker may throw UnhandledMessageException
Author: alexdoth
Created: 2012-01-22 01:17:24+00:00
State: open
Labels: Bug

In the preStart method of RedisClientSession the following execution
```
socket = IO.connect(ioManager, host, port, worker)
worker ! Socket(socket)
```
may lead to a sequence of events, which will cause the exception.

RedisClientWorker only responds to an IO.Closed message if the socket variable is the same as the handle from the message.
Thus if the worker receives the IO.Closed message before the Socket message the exception will be thrown.
An example scenario is a refused connection.