diff options
| author | 2021-11-24 20:43:41 +0000 | |
|---|---|---|
| committer | 2021-11-24 20:43:41 +0000 | |
| commit | bf20debde4aa6565478f4f4b50533b1f0e6b5120 (patch) | |
| tree | f58ee18247bba7b9780608945962296fdccfc989 /src/configreader.cpp | |
| parent | Refactor the ClassTypes enum and move into ConnectClass. (diff) | |
Remove the legacy sendq to hardsendq/softsendq logic.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 6d4b41382..74b8e98e1 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -251,17 +251,6 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current) me->registration_timeout = tag->getDuration("timeout", me->registration_timeout); me->pingtime = tag->getDuration("pingfreq", me->pingtime); - std::string sendq; - if (tag->readString("sendq", sendq)) - { - // attempt to guess a good hard/soft sendq from a single value - unsigned long value = strtoul(sendq.c_str(), NULL, 10); - if (value > 16384) - me->softsendqmax = value / 16; - else - me->softsendqmax = value; - me->hardsendqmax = value * 8; - } me->softsendqmax = tag->getUInt("softsendq", me->softsendqmax, ServerInstance->Config->Limits.MaxLine); me->hardsendqmax = tag->getUInt("hardsendq", me->hardsendqmax, ServerInstance->Config->Limits.MaxLine); me->recvqmax = tag->getUInt("recvq", me->recvqmax, ServerInstance->Config->Limits.MaxLine); |
