anchor.diff:  
       case elli_tcp:send(Req#req.socket, Response) of
           ok -> ok;
  -        {error, closed} ->
  +        {error, Closed} when Closed =:= closed orelse Closed =:= enotconn ->
               #req{callback = {Mod, Args}} = Req,
               handle_event(Mod, client_closed, [before_response], Args),
               ok
  
positive.code:                     handle_event(Mod, request_timeout, [], Args),
                      elli_tcp:close(Socket),
                      exit(normal);
                  {error, closed} ->
                      handle_event(Mod, request_closed, [], Args),
                      elli_tcp:close(Socket),
                      exit(normal)
  
negative.code:             case send_chunk(Socket, Data) of
                  ok ->
                      From ! {self(), ok};
                  {error, Closed} when Closed =:= closed orelse Closed =:= enotconn ->
                      From ! {self(), {error, closed}}
              end,
              ?MODULE:chunk_loop(Socket)
  