anchor.diff:              State#state{sleepers=Rest}
       end,
   
  -    {noreply, State1#state{reqs=gb_trees:delete_any(Pid, Reqs),
  -                           open_reqs=NbReqs-1}};
  +    case dict:find(Pid, Reqs) of
  +        {ok, {Age, _}} ->
  +            Reqs1 = dict:erase(Pid, Reqs),
  +            ReqsByAge1 = gb_trees:delete_any(Age, ReqsByAge),
  +            {noreply, State1#state{reqs=Reqs1,
  +                                   reqs_by_age=ReqsByAge1,
  +                                   open_reqs=NbReqs-1}};
  +        _ ->
  +            {noreply, State1}
  +    end;
   
   handle_info({'EXIT', _Pid, {error, emfile}}, State) ->
       error_logger:error_msg("No more file descriptors, shutting down:
  
positive.code:     {reply, ok, State#state{max_clients=Nb}};
  
  handle_call({set_nb_acceptors, Nb}, _From,  State) ->
  
      NewState = manage_acceptors(State#state{nb_acceptors=Nb}),
  
      {reply, ok, NewState};
  
  handle_call(start_accepting, From, #state{open_reqs=NbReqs,
  
negative.code:                 transport_opts = TransOpts,
                  acceptors = Acceptors,
                  nb_acceptors = NbAcceptors,
                  reqs = dict:new(),
                  reqs_by_age = gb_trees:empty(),
                  age = 0,
                  open_reqs = 0,
                  max_clients = 300000,
                  sleepers = [],
  