Explicitly set SO_RCVBUF/SO_SNDBUF on UDP and TCP sockets

Set the SO_RCVBUF to reasonably small value (4096) on both UDP and TCP
sockets.  The reasoning behind is that processing delayed packets in DNS
server makes little sense because the client would most probably already
lose interest in the DNS message reply by the time it is processed.
Therefore large kernel buffers will only cause named to process delayed
queries which would cause the DNS client to retransmit the original
query adding even more load.

For SO_SNDBUF, we set small UDP buffer (4096) and rather large TCP buffer.
73 jobs for !4460 with 2313-set-RCVBUF-SNDBUF in 18 minutes and 29 seconds (queued for 8 seconds)
detached
Status Job ID Name Coverage
  Autoconf
passed #1500543
amd64 linux
autoreconf

00:00:16

 
  Precheck
passed #1500545
amd64 linux
clang-format

00:00:20

passed #1500546
amd64 linux
coccinelle

00:03:45

failed #1500547
amd64 linux
danger

00:00:16

passed #1500544
amd64 linux
misc

00:00:19

passed #1500548
amd64 linux
tarball-create

00:01:46

 
  Build
passed #1500560
amd64 linux
clang:asan

00:02:08

passed #1500564
amd64 linux
clang:buster:amd64

00:01:06

passed #1500567
amd64 libvirt
clang:freebsd11:amd64

00:01:16

passed #1500568
amd64 libvirt
clang:freebsd12:amd64

00:01:14

passed #1500569
amd64 libvirt
clang:openbsd:amd64

00:02:48

passed #1500562
amd64 linux
clang:tsan

00:01:12

passed #1500549
amd64 linux
gcc:alpine3.12:amd64

00:01:01

passed #1500559
amd64 linux
gcc:asan

00:01:41

passed #1500553
amd64 linux
gcc:buster:amd64

00:00:48

passed #1500550
amd64 linux
gcc:centos7:amd64

00:00:53

passed #1500551
amd64 linux
gcc:centos8:amd64

00:00:59

passed #1500558
amd64 linux
gcc:focal:amd64

00:00:54

passed #1500563
amd64 linux
gcc:mutexatomics

00:00:59

passed #1500555
amd64 linux
gcc:out-of-tree

00:01:09

passed #1500554
amd64 linux
gcc:sid:amd64

00:01:12

passed #1500565
amd64 linux
gcc:softhsm2.4

00:01:00

passed #1500566
amd64 linux
gcc:softhsm2.6

00:01:05

passed #1500552
amd64 linux
gcc:stretch:amd64

00:01:06

passed #1500561
amd64 linux
gcc:tsan

00:01:08

passed #1500556
amd64 linux
gcc:tumbleweed:amd64

00:01:03

passed #1500557
amd64 linux
gcc:xenial:amd64

00:01:08

passed #1500570
amd64 windows
msvc:windows:amd64

00:00:46

 
  Unit
passed #1500581
amd64 linux
unit:clang:asan

00:01:28

passed #1500585
amd64 linux
unit:clang:buster:amd64

00:01:13

passed #1500588
amd64 libvirt
unit:clang:freebsd11:amd64

00:01:29

passed #1500589
amd64 libvirt
unit:clang:freebsd12:amd64

00:01:34

passed #1500590
amd64 libvirt
unit:clang:openbsd:amd64

00:03:19

passed #1500583
amd64 linux
unit:clang:tsan

00:03:01

passed #1500571
amd64 linux
unit:gcc:alpine3.12:amd64

00:01:20

passed #1500580
amd64 linux
unit:gcc:asan

00:01:33

failed #1500575
amd64 linux
unit:gcc:buster:amd64

00:02:14

passed #1500572
amd64 linux
unit:gcc:centos7:amd64

00:01:10

passed #1500573
amd64 linux
unit:gcc:centos8:amd64

00:01:09

passed #1500579
amd64 linux
unit:gcc:focal:amd64

00:01:08

passed #1500584
amd64 linux
unit:gcc:mutexatomics

00:01:12

passed #1500576
amd64 linux
unit:gcc:sid:amd64

00:01:09

passed #1500586
amd64 linux
unit:gcc:softhsm2.4

00:01:06

passed #1500587
amd64 linux
unit:gcc:softhsm2.6

00:01:10

passed #1500574
amd64 linux
unit:gcc:stretch:amd64

00:01:16

passed #1500582
amd64 linux
unit:gcc:tsan

00:04:02

passed #1500577
amd64 linux
unit:gcc:tumbleweed:amd64

00:01:10

passed #1500578
amd64 linux
unit:gcc:xenial:amd64

00:01:19

 
  System
failed #1500601
amd64 linux
system:clang:asan

00:13:46

failed #1500605
amd64 linux
system:clang:buster:amd64

00:12:13

passed #1500608
amd64 libvirt
system:clang:freebsd11:amd64

00:12:02

failed #1500609
amd64 libvirt
system:clang:freebsd12:amd64

00:12:09

failed #1500603
amd64 linux allowed to fail
system:clang:tsan

00:15:22

failed #1500591
amd64 linux
system:gcc:alpine3.12:amd64

00:13:00

failed #1500600
amd64 linux
system:gcc:asan

00:14:05

skipped #1500595
amd64 linux
system:gcc:buster:amd64
failed #1500592
amd64 linux
system:gcc:centos7:amd64

00:12:18

failed #1500593
amd64 linux
system:gcc:centos8:amd64

00:12:57

failed #1500599
amd64 linux
system:gcc:focal:amd64

00:13:04

failed #1500604
amd64 linux
system:gcc:mutexatomics

00:11:38

failed #1500596
amd64 linux
system:gcc:sid:amd64

00:12:47

failed #1500606
amd64 linux
system:gcc:softhsm2.4

00:11:50

failed #1500607
amd64 linux
system:gcc:softhsm2.6

00:12:20

failed #1500594
amd64 linux
system:gcc:stretch:amd64

00:12:27

failed #1500602
amd64 linux allowed to fail
system:gcc:tsan

00:15:57

failed #1500597
amd64 linux
system:gcc:tumbleweed:amd64

00:12:40

failed #1500598
amd64 linux
system:gcc:xenial:amd64

00:11:42

 
  Docs
passed #1500610
amd64 linux
docs

00:00:52

 
  Postcheck
passed #1500614
amd64 linux
cppcheck

00:00:59

passed #1500611
amd64 linux
flake8

00:00:21

skipped #1500615
amd64 linux
gcov
passed #1500612
amd64 linux
pylint

00:00:22

passed #1500613
amd64 linux
scan-build

00:04:29

 
Name Stage Failure
failed
system:gcc:tsan System
FAIL rrl (exit status: 1)

$ find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1507 files

Uploading artifacts as "archive" to coordinator... ok
id=1500602 responseStatus=201 Created token=yUHxuRdr
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:clang:tsan System
FAIL rrl (exit status: 1)

$ find bin -name 'tsan.*' -exec python3 util/parse_tsan.py {} \;
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1508 files

Uploading artifacts as "archive" to coordinator... ok
id=1500603 responseStatus=201 Created token=UP3yFXZy
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:asan System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1507 files

Uploading artifacts as "archive" to coordinator... ok
id=1500600 responseStatus=201 Created token=mR3Sn-ky
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:clang:asan System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1507 files

Uploading artifacts as "archive" to coordinator... ok
id=1500601 responseStatus=201 Created token=J931NeJ-
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:tumbleweed:amd64 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1479 files

Uploading artifacts as "archive" to coordinator... ok
id=1500597 responseStatus=201 Created token=u2sRH4eG
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:softhsm2.6 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1533 files

Uploading artifacts as "archive" to coordinator... ok
id=1500607 responseStatus=201 Created token=WmFonzwk
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:clang:buster:amd64 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1507 files

Uploading artifacts as "archive" to coordinator... ok
id=1500605 responseStatus=201 Created token=ky7Jzyhv
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:softhsm2.4 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1527 files

Uploading artifacts as "archive" to coordinator... ok
id=1500606 responseStatus=201 Created token=4HpmEXVy
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:alpine3.12:amd64 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1525 files

Uploading artifacts as "archive" to coordinator... ok
id=1500591 responseStatus=201 Created token=ttyDnS5F
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:focal:amd64 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1479 files

Uploading artifacts as "archive" to coordinator... ok
id=1500599 responseStatus=201 Created token=yL5KkfhW
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:sid:amd64 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1792 files

Uploading artifacts as "archive" to coordinator... ok
id=1500596 responseStatus=201 Created token=Br_aUoWx
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:centos8:amd64 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1498 files

Uploading artifacts as "archive" to coordinator... ok
id=1500593 responseStatus=201 Created token=3kJgQfco
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:clang:freebsd12:amd64 System

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
Runtime platform
arch=amd64 os=freebsd pid=75302 revision=775dd39d version=13.8.0
untracked: found 4736 files

Uploading artifacts as "archive" to coordinator... ok
id=1500609 responseStatus=201 Created token=yQtMeFR3
Cleaning up file based variables
ERROR: Job failed: exit status 1
failed
system:gcc:xenial:amd64 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1495 files

Uploading artifacts as "archive" to coordinator... ok
id=1500598 responseStatus=201 Created token=EM5oKkky
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:stretch:amd64 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1464 files

Uploading artifacts as "archive" to coordinator... ok
id=1500594 responseStatus=201 Created token=TuuvX1z8
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:centos7:amd64 System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1511 files

Uploading artifacts as "archive" to coordinator... ok
id=1500592 responseStatus=201 Created token=VSki3gsy
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
system:gcc:mutexatomics System
FAIL rrl (exit status: 1)

$ test -n "${OUT_OF_TREE_WORKSPACE}" && mv "${OUT_OF_TREE_WORKSPACE}" "${CI_PROJECT_DIR}"
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 1507 files

Uploading artifacts as "archive" to coordinator... ok
id=1500604 responseStatus=201 Created token=UDQH9-Uj
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
unit:gcc:buster:amd64 Unit
make[1]: Leaving directory '/builds/isc-projects/bind9/fuzz'
make: *** [Makefile:608: unit-recursive] Error 1
make: Target 'unit' not remade because of errors.
Uploading artifacts for failed job
Uploading artifacts...
untracked: found 2303 files

Uploading artifacts as "archive" to coordinator... ok
id=1500575 responseStatus=201 Created token=rFe7ihfq
Cleaning up file based variables
ERROR: Job failed: exit code 1
failed
danger Precheck
 * branch            main       -> FETCH_HEAD



Failing the build, there is 1 fail.
Feedback: https://gitlab.isc.org/isc-projects/bind9/merge_requests/4460#note_180492

Cleaning up file based variables
ERROR: Job failed: exit code 1