Mark Andrews
2be55f5c05
use smt_pause instead of pause on sparc
2019-01-15 20:29:27 -05:00
Mark Andrews
bd529b1f30
silence coverity issues; move isc_refcount_decrement out of INSIST
2019-01-10 14:42:28 +11:00
Ondřej Surý
e2cdf066ea
Remove message catalogs
2019-01-09 23:44:26 +01:00
Mark Andrews
5e8b772ad1
Ensure base64/base32/hex fields in DNS records that should be non-empty are.
2019-01-09 18:04:21 +11:00
Ondřej Surý
ff7c868f25
__SANITIZE_ADDRESS__ needs to be defined to 1
2018-12-19 22:02:37 +01:00
Ondřej Surý
272c065268
Add emacs .dir-locals.el settings for flycheck mode
2018-12-19 17:03:37 +01:00
Ondřej Surý
8903d68d69
gcc defines __SANITIZE_ADDRESS__ and not __ADDRESS_SANITIZER__, use the correct #define
2018-12-19 12:24:59 +01:00
Ondřej Surý
e1ce3a3d42
Define __ADDRESS_SANITIZER__ if compiling under clang's AddressSanitizer
2018-12-19 09:54:37 +01:00
Tinderbox User
5bd855251c
prep 9.13.5
2018-12-07 03:41:19 +00:00
Ondřej Surý
953a957dfa
Just #define isc_refcount_increment0() to isc_refcount_increment()
2018-12-05 14:16:41 +01:00
Ondřej Surý
8537adef4c
The isc_refcount_decrement must use memory_order_release and isc_refcount_destroy must run thread barrier with memory_order_require
2018-12-05 14:11:53 +01:00
Witold Kręcicki
ddc1d4d6d4
Fix a race between process_fd and socketclose in unix socket code. [GL #744 ]
2018-12-05 12:03:52 +00:00
Ondřej Surý
d13cabd27e
fixup! When compiling for fuzzing, ensure the pseudo random number seed is non-zero.
2018-11-30 11:21:55 +00:00
Stephen Morris
77032a4e29
When compiling for fuzzing, ensure the pseudo random number seed is non-zero.
2018-11-30 11:21:55 +00:00
Mark Andrews
a487473fc5
add missing DBC checks for catz and add isc_magic checks; add DBC checks to ht.c
2018-11-29 12:39:20 +11:00
Ondřej Surý
a688a43faf
Move the CMocka include directories from CFLAGS to CINCLUDES where it belongs to not get overriden later by the default CFLAGS rule
2018-11-26 16:16:34 +01:00
Michał Kępień
62ca7743ae
Fix compilation on CentOS 6 (i386)
...
The stock toolchain available on CentOS 6 for i386 is unable to use the
_mm_pause() intrinsic. Fix by using "rep; nop" assembly instructions on
that platform instead.
2018-11-26 10:57:14 +01:00
Ondřej Surý
e24afa3088
Fix typo __LINE -> __LINE__
2018-11-24 00:53:24 +01:00
Witold Kręcicki
d5793ecca2
- isc_task_create_bound - create a task bound to specific task queue
...
If we know that we'll have a task pool doing specific thing it's better
to use this knowledge and bind tasks to task queues, this behaves better
than randomly choosing the task queue.
- use bound resolver tasks - we have a pool of tasks doing resolutions,
we can spread the load evenly using isc_task_create_bound
- quantum set universally to 25
2018-11-23 04:34:02 -05:00
Mark Andrews
509dad8737
handle systems without IPv4
2018-11-23 12:05:53 +11:00
Mark Andrews
6696a40ea9
address resource leak; don't call close() on socket error;
2018-11-23 10:34:59 +11:00
Ondřej Surý
d1a8a3faed
Memory allocations must be fatal even when default_memalloc is not used
2018-11-22 16:46:57 +01:00
Ondřej Surý
2fa857d502
Cleanup lib/isc/mem.c after failed allocations made fatal
2018-11-22 16:46:56 +01:00
Ondřej Surý
3987a146be
Remove isc_mem_{set,get}quota unused functions
2018-11-22 16:46:56 +01:00
Håvard Eidnes
f6c4ed94e4
Fix the build on NetBSD due to the differences in pthread implementation.
...
Signed-off-by: Ondřej Surý <ondrej@sury.org>
2018-11-22 09:43:43 -05:00
Witold Kręcicki
929ea7c2c4
- Make isc_mutex_destroy return void
...
- Make isc_mutexblock_init/destroy return void
- Minor cleanups
2018-11-22 11:52:08 +00:00
Ondřej Surý
d940e95206
isc_quota_init now returns 'void'
2018-11-22 11:52:08 +00:00
Ondřej Surý
2f3eee5a4f
isc_mutex_init returns 'void'
2018-11-22 11:51:49 +00:00
Ondřej Surý
73a8999d1c
isc_condition_init returns 'void'
2018-11-22 11:51:49 +00:00
Witold Kręcicki
0bed9bfc28
isc_mutex_init and isc_condition_init failures are now fatal
2018-11-22 11:51:49 +00:00
Tinderbox User
db1cd0d970
prep 9.13.4
2018-11-22 00:20:22 +00:00
Witold Kręcicki
5f81aa10bc
Use proper casting in socket unit test
2018-11-19 17:40:34 +01:00
Ondřej Surý
7a3eb391fa
Fix memory leak in lex_test.c
2018-11-19 07:47:05 +01:00
Evan Hunt
8f15219f36
remove (or hide behind a 'verbose' flag) extra output from system tests
2018-11-16 20:46:14 +00:00
Mark Andrews
1ca5920113
2018-11-16 12:24:18 +11:00
Mark Andrews
474fbe88bf
add missing tasks argument
2018-11-16 11:51:05 +11:00
Evan Hunt
c2a274cc5d
silence "unused return value" warning
2018-11-15 12:54:11 -08:00
Ondřej Surý
8de2451756
Abort on memory allocation failure
2018-11-15 17:24:08 +01:00
Witold Kręcicki
79afbe2966
Some comments
2018-11-15 08:21:40 +00:00
Witold Kręcicki
16d329d55b
Work with assumption that isc_mem_get always succeds; Crash if isc_thread_create, isc_mutex_init or isc_condition_init fails
2018-11-15 08:21:40 +00:00
Evan Hunt
1f0cd6606e
style: one-line statement braces, line length, etc
2018-11-15 08:21:40 +00:00
Witold Krecicki
e55bbec66e
FreeBSD fixes - proper affinity setting, don't use SO_REUSEPORT
2018-11-15 08:21:17 +00:00
Witold Krecicki
3f7d79e574
Don't doublelock fdlock on Solaris
2018-11-15 08:21:17 +00:00
Witold Kręcicki
ca7b5ceee5
Synchronize Windows socket code with API changes.
2018-11-15 08:21:17 +00:00
Witold Kręcicki
c1a4f0e66a
Use multiple worker queues (using isc_task_sendto()) in unix socket code
2018-11-15 08:21:17 +00:00
Witold Kręcicki
b2b210d6d9
Make watching/unwatching sockets saner.
2018-11-15 08:21:17 +00:00
Witold Kręcicki
d652551e86
Use the newly accepted FD in TCP code.
2018-11-15 08:21:17 +00:00
Witold Kręcicki
88edf8fe4d
Use isc_refcount_t in socket reference counting.
2018-11-15 08:21:17 +00:00
Witold Krecicki
7223790380
Multiple network event loop threads support for Solarises /dev/poll.
2018-11-15 08:21:17 +00:00
Witold Kręcicki
9c926a5d9b
Mangle fdlocks a bit.
...
Mutexes are slower if they're in the same cache line. Since
fd's come in herds, and usually our listen sockets will have nearby
fd numbers, we mangle fdlocks so that the locks are further away.
2018-11-15 08:21:17 +00:00