nsd icon indicating copy to clipboard operation
nsd copied to clipboard

TCP_BACKLOG runtime config option

Open SvenVD-be opened this issue 3 years ago • 6 comments

Is there any way to increase the default TCP_BACKLOG option of nsd from 256 to higher values without recompiling and setting the value higher in AC_DEFINE_UNQUOTED([TCP_BACKLOG], [256]?

It would be nice if this was a configuration option like the tcp-listen-queue that bind has.

Thanks

SvenVD-be avatar Oct 30 '20 22:10 SvenVD-be

Thanks @SvenVD-be . We'll consider (I'll bring it up internally).

wtoorop avatar Nov 02 '20 08:11 wtoorop

On Linux you should default to -1 (meaning OS default or sysadmin choosen value) not to an arbitrary number you picked.

crrodriguez avatar May 12 '21 15:05 crrodriguez

see also https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=19f92a030ca6d772ab44b22ee6a01378a8cb32d4

crrodriguez avatar May 12 '21 15:05 crrodriguez

any update?

SvenVD-be avatar Jul 29 '22 18:07 SvenVD-be

Hi @SvenVD-be! Sorry for the overdue reply. Looking at the code, there are no changes yet. I don't know what was decided at the time. @wtoorop or @wcawijngaards any comments? If there's no objections, I guess it isn't too much work to add the option and the -1 option indicated by @crrodriguez may actually be a good default, at least on Linux.

k0ekk0ek avatar Aug 03 '22 10:08 k0ekk0ek

I do not recall, @k0ekk0ek . I also have no objections, for this option. Most DNS authority servers have very little TCP traffic, because they use UDP.

wcawijngaards avatar Aug 03 '22 11:08 wcawijngaards