anchor.diff:      inet:setopts(Socket, [{packet, raw}]),
       handle_invalid_request(Socket, Request, Headers);
   headers(Socket, Request, Headers, Body, HeaderCount) ->
  -    case gen_tcp:recv(Socket, 0, ?IDLE_TIMEOUT) of
  +    case gen_tcp:recv(Socket, 0, ?HEADERS_RECV_TIMEOUT) of
           {ok, http_eoh} ->
               inet:setopts(Socket, [{packet, raw}]),
               Req = mochiweb:new_request({Socket, Request,
  
positive.code:     request(Socket, Body).
  
  request(Socket, Body) ->
      case gen_tcp:recv(Socket, 0, ?IDLE_TIMEOUT) of
          {ok, {http_request, Method, Path, Version}} ->
              headers(Socket, {Method, Path, Version}, [], Body, 0);
          {error, {http_error, "\r\n"}} ->
  
negative.code: -export([after_response/2, reentry/1]).
  -export([parse_range_request/1, range_skip_length/2]).
  
  -define(REQUEST_RECV_TIMEOUT, 300000).   % timeout waiting for request line
  -define(HEADERS_RECV_TIMEOUT, 30000). % timeout waiting for headers
  
  -define(MAX_HEADERS, 1000).
  -define(DEFAULTS, [{name, ?MODULE},
  