anchor.diff:            send_response_to_client(Status, RequestPipe2, ResponsePipe, Port, Sock, Host, Path)
         end;
       {error, closed} ->
  -      io:format("socket closed~n"),
  +      % io:format("socket closed~n"),
         ok = gen_tcp:close(Sock),
         safe_port_close(Port);
       {error, Reason} ->
  
positive.code: gather_request(Sock, DataSoFar, Pipe) ->
    try
      {ok, Data, P2} = read_chunk_from_socket(Sock, Pipe),
      io:format("~p~n", [Data]),
      TotalData = lists:append(DataSoFar, [Data]),
      if
        Data =:= <<"0000">> ->
  
negative.code:   
  % Send a response to the client
  send_response_to_client(Status, RequestPipe, ResponsePipe, Port, Sock, Host, Path) ->
    % io:format("send response~n"),
    try
      stream_out(Port, Sock, ResponsePipe)
    catch
      throw:{error, timeout} -> ok
    end,
    case Status of
      more ->
  