Commits

Valentino Volonghi aka dialtone  committed d695ad7

always empty the buffer after we send a reply

  • Participants
  • Parent commits a69fbd9

Comments (0)

Files changed (1)

File src/client.erl

                 % Simple return values contained in a single line
                 {0, Value} ->
                     gen_server:reply(From, Value),
-                    State#redis{remaining=0, pstate=empty, caller=undefined}
+                    State#redis{remaining=0, pstate=empty, caller=undefined, buffer=[]}
             end
     end,
     inet:setopts(Socket, [{active, once}]),