anchor.diff:              Req = mochiweb:new_request({Socket, Request,
                                           lists:reverse(Headers)}),
               Body(Req),
  -            case Req:should_close() of
  -                true ->
  -                    gen_tcp:close(Socket),
  -                    exit(normal);
  -                false ->
  -                    Req:cleanup(),
  -                    ?MODULE:loop(Socket, Body)
  -            end;
  +            ?MODULE:after_response(Body, Req);
           {ok, {http_header, _, Name, _, Value}} ->
               headers(Socket, Request, [{Name, Value} | Headers], Body,
                       1 + HeaderCount);
  
positive.code:             exit(normal)
      end.
  
  headers(Socket, Request, Headers, _Body, ?MAX_HEADERS) ->
      %% Too many headers sent, bad request.
      inet:setopts(Socket, [{packet, raw}]),
  
negative.code: -author('bob@mochimedia.com').
  -export([start/0, start/1, stop/0, stop/1]).
  -export([loop/2, default_body/1]).
  -export([after_response/2, reentry/1]).
  
  -define(IDLE_TIMEOUT, 30000).
  
  