xetorthio/jedis — Issue #230: A timeout on a SET/SETEX call can return "OK" for the next GET
Author: thushw
Created: 2011-11-15 21:59:06+00:00
State: open

If a SETEX call fails due to a client side timeout, the socket buffers are not cleared. It is possible that the server finishes the SETEX call and returns "OK" down the wire. Then the next GET call from the client will see that in the buffer and return "OK" and not the correct value for the GET returned from the server.

Should be able to fix this by closing/reopening Connection.outputStream upon a timeout from SET/SETEX/GET calls.