anchor.diff:                  {error, Reason} ->
                       ?Debug("TCP error: ~p~n", [Reason]),
                       case Reason of
  -                        closed -> close(RPState);
  -                        _      -> ok
  +                        closed -> ok;
  +                        _      -> close(RPState)
                       end,
                       outXXX(500, Arg)
               end;
  
positive.code:         {error, Reason} ->
              ?Debug("TCP error: ~p~n", [Reason]),
              case Reason of
                  closed -> close(RPState);
                  _      -> ok
              end,
              outXXX(500, Arg)
      end;
  
negative.code: out(#arg{state=RPState}=Arg) when RPState#revproxy.state == terminate ->
      case RPState#revproxy.srvconn_status of
          "close" when RPState#revproxy.is_chunked == false -> close(RPState);
          "close" -> ok;
          _  -> cache_connection(RPState)
      end,
  
  