From bf20debde4aa6565478f4f4b50533b1f0e6b5120 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 24 Nov 2021 20:43:41 +0000 Subject: Remove the legacy sendq to hardsendq/softsendq logic. --- src/configreader.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/configreader.cpp') 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); -- cgit v1.3.1-10-gc9f91