anchor.diff:      %% specified in conf file for the 'vdir' directive.
       Result.
   
  +close_accepted_if_max(GS,{ok, _Socket})
  +  when (GS#gs.gconf)#gconf.max_connections == nolimit ->
  +    ok;
   close_accepted_if_max(GS,{ok, Socket}) ->
       MaxCon = (GS#gs.gconf)#gconf.max_connections,
       NumCon = GS#gs.connections,
  -    if (MaxCon == nolimit) or (NumCon < MaxCon) ->
  +    if
  +        NumCon < MaxCon ->
   	    ok;
  -       true ->
  +        true ->
               S=case peername(Socket, GS#gs.ssl) of
                     {ok, {IP, Port}} ->
                         io_lib:format("~s:~w", [inet_parse:ntoa(IP), Port]);
  
positive.code:     end.
  
  
  %% case-insensitive compare servername and ignore any optional
  %% :Port postfix
  comp_sname(Hname, Sname) ->
      hd(string:tokens(yaws:to_lower(Hname), ":")) =:=
          hd(string:tokens(yaws:to_lower(Sname), ":")).
  
  pick_sconf(GC, H, Group) ->
      case H#headers.host of
  
negative.code:         {_From, next, Accepted} when Ready == [] ->
   	    close_accepted_if_max(GS,Accepted),
   	    New = acceptor(GS),
   	    GS2 = GS#gs{connections=GS#gs.connections + 1},
              gserv_loop(GS2#gs{sessions = GS2#gs.sessions + 1}, Ready, Rnum, New);
          {_From, next, Accepted} ->
  	    close_accepted_if_max(GS,Accepted),
              [{_Then, R}|RS] = Ready,
              R ! {self(), accept},
   	    GS2 = GS#gs{connections=GS#gs.connections + 1},
              gserv_loop(GS2, RS, Rnum-1, R);
  	{_From, decrement} ->
   	    GS2 = GS#gs{connections=GS#gs.connections - 1},
   	    gserv_loop(GS2, Ready, Rnum, Last);
          {From, done_client, Int} ->
              GS2 = if
  		      Int == 0 -> GS#gs{sessions = GS#gs.sessions - 1,
                                          connections = GS#gs.connections - 1};
  		      Int > 0 -> GS#gs{sessions = GS#gs.sessions - 1,
                                         reqs = GS#gs.reqs + Int,
                                         connections = GS#gs.connections - 1}
                    end,
              if
                  Rnum == 8 ->
  