]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove limitsomaxconn and remains of m_halfop/allowhalfop
authorattilamolnar <attilamolnar@hush.com>
Tue, 18 Jun 2013 19:34:10 +0000 (21:34 +0200)
committerattilamolnar <attilamolnar@hush.com>
Tue, 18 Jun 2013 19:34:10 +0000 (21:34 +0200)
docs/conf/inspircd.conf.example
src/configreader.cpp

index f6dc96ecd3bb2f474441e03bfc6c4953a0411bd3..23a87dc5e7e45d29dbc257f5aa130965089562d9 100644 (file)
              # in the accept queue. This is *NOT* the total maximum number of
              # connections per server. Some systems may only allow this to be up
              # to 5, while others (such as linux and *BSD) default to 128.
+             # Setting this above the limit imposed by your OS can have undesired
+             # effects.
              somaxconn="128"
 
-             # limitsomaxconn: By default, somaxconn (see above) is limited to a
-             # safe maximum value in the 2.0 branch for compatibility reasons.
-             # This setting can be used to disable this limit, forcing InspIRCd
-             # to use the value specifed above.
-             limitsomaxconn="true"
-
              # softlimit: This optional feature allows a defined softlimit for
              # connections. If defined, it sets a soft max connections value.
              softlimit="12800"
index 905eb786af84b0646b6ae4eca423e172cb903935..427bc79bf0a7ee76a19a092f7f430aab2b7054af 100644 (file)
@@ -433,8 +433,6 @@ void ServerConfig::Fill()
        NoSnoticeStack = options->getBool("nosnoticestack", false);
 
        range(SoftLimit, 10, ServerInstance->SE->GetMaxFds(), ServerInstance->SE->GetMaxFds(), "<performance:softlimit>");
-       if (ConfValue("performance")->getBool("limitsomaxconn", true))
-               range(MaxConn, 0, SOMAXCONN, SOMAXCONN, "<performance:somaxconn>");
        range(MaxTargets, 1, 31, 20, "<security:maxtargets>");
        range(NetBufferSize, 1024, 65534, 10240, "<performance:netbuffersize>");
 
@@ -694,9 +692,6 @@ void ServerConfig::ApplyModules(User* user)
                }
        }
 
-       if (ConfValue("options")->getBool("allowhalfop") && removed_modules.erase("m_halfop.so") == 0)
-               added_modules.push_back("m_halfop.so");
-
        for (std::set<std::string>::iterator removing = removed_modules.begin(); removing != removed_modules.end(); removing++)
        {
                // Don't remove cmd_*.so, just remove m_*.so