Ondřej Surý
73a8999d1c
isc_condition_init returns 'void'
2018-11-22 11:51:49 +00:00
Mark Andrews
1ca5920113
2018-11-16 12:24:18 +11: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
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
Witold Kręcicki
58d75d9d8d
Fix a race between socket closing and incoming event.
2018-11-15 08:21:17 +00:00
Witold Kręcicki
f94f4bc1f4
Set network threads CPU affintity.
2018-11-15 08:21:17 +00:00
Witold Kręcicki
bd024eee57
Add runtime detection of SO_REUSEPORT, use it instead of dup() if available.
2018-11-15 08:21:17 +00:00
Witold Krecicki
6feb688f69
Use multiple network event loop threads with separate data structures.
2018-11-15 08:21:17 +00:00
Witold Kręcicki
cbc1b12311
Do IO after event directly in the network thread, don't queue an event in a separate task.
2018-11-15 08:21:17 +00:00
Witold Kręcicki
778ab8158a
Remove fdwatch sockets, those are not used anywhere.
2018-11-15 08:21:17 +00:00
Ondřej Surý
6f5fe11f5a
isc_stdtime_t is always 32-bit now, so remove the always true macro STDTIME_ON_32BITS
2018-11-09 02:27:06 +07:00
Ondřej Surý
23fff6c569
Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached
2018-11-08 12:22:17 +07:00
Ondřej Surý
e2e138a801
Don't assert on failed getrlimit call to allow called to handle this gracefully as it already does, just abort where we need to know the numbers
2018-11-08 12:21:53 +07:00
Ondřej Surý
b2b43fd235
Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool
2018-11-08 12:21:53 +07:00
Witold Kręcicki
54b9690a4e
Remove vector socket functions from Unix socket code and library headers
...
Remove the following functions in order to simplify socket code:
- isc_socket_recvv()
- isc_socket_sendtov()
- isc_socket_sendtov2()
- isc_socket_sendv()
2018-10-31 12:12:53 +01:00
Mark Andrews
561b780ba0
Only set IPV6_USE_MIN_MTU on IPv6.
2018-10-29 16:49:33 +11:00
Ondřej Surý
7fd3dc63de
Add generic message digest API (isc_md) to replace specific MD functions md5/sha1/sha256
2018-10-25 08:15:42 +02:00
Evan Hunt
3f35ab8567
remove references to methods and app_api.c
2018-10-19 00:28:53 -07:00
Witold Kręcicki
38a127c35b
Remove layering from isc_task, isc_app, isc_socket, isc_timer, isc_mem
2018-10-18 09:19:12 +00:00
Witold Kręcicki
cdbac34cba
Get rid of isc_bind9 conditional
2018-10-18 09:19:12 +00:00
Mark Andrews
81b133d963
avoid macro name collision with system defined macro
2018-09-10 09:18:17 +10:00
Ondřej Surý
2750799132
Assume socklen_t is always available on all supported platforms (except on Windows where it is typedefed to int32_t)
2018-09-07 12:17:40 +02:00
Ondřej Surý
927b65aa7f
Remove now dummy HAVE_UNIXWARE_SIGWAIT define
2018-09-07 12:17:40 +02:00
Ondřej Surý
c7b1e7fd08
Linux (glibc) has NPTL since LinuxThreads are no-more, so remove HAVE_LINUXTHREADS
2018-09-07 12:17:40 +02:00
Ondřej Surý
2f02552a93
Remove now dummy NEED_PTHREAD_INIT
2018-09-07 12:17:30 +02:00
Ondřej Surý
51b0d5d55e
Replace platform ISC_PLATFORM_HAVESTATNSEC with config ENABLE_STAT_NSEC
2018-09-07 12:17:30 +02:00
Ondřej Surý
f1d3055d7b
Replace platform ISC_PLATFORM_HAVETFO with config ENABLE_TCP_FASTOPEN
2018-09-07 12:17:30 +02:00
Ondřej Surý
092edb5b44
Replace platform ISC_PLATFORM_HAVEDEVPOLL with check for devpoll.h headers
2018-09-07 12:17:30 +02:00
Ondřej Surý
5d65392d18
Replace platform ISC_PLATFORM_HAVEEPOLL with config HAVE_EPOLL_CREATE1
2018-09-07 12:17:30 +02:00
Ondřej Surý
68f473a25e
Replace platform ISC_PLATFORM_HAVEKQUEUE with config HAVE_KQUEUE
2018-09-07 12:17:30 +02:00
Ondřej Surý
4014bc42dd
According to POSIX.1-2001, POSIX.1-2008 #include <sys/select.h> is correct way to get fd_set
2018-09-07 12:17:30 +02:00
Ondřej Surý
0bea5c2baf
Replace platform.h ISC_PLATFORM_HAVEIFNAMETOINDEX with config HAVE_IF_NAMETOINDEX
2018-09-07 12:17:30 +02:00
Witold Kręcicki
17212cf996
Align CMSG buffers to a void* boundary, fixes crash on architectures with strict alignment
...
CHANGES entry
2018-09-07 09:34:32 +02:00
Ondřej Surý
142cb0ab8f
Remove already removed headers from the Makefiles
2018-09-03 12:09:52 +02:00
Ondřej Surý
25248eb097
Bail-out early in the for install loops instead of continuing because for masks the error in the middle
2018-09-03 12:05:45 +02:00
Witold Krecicki
d932ec871c
Silence some warnings and errors
2018-08-31 13:48:26 -07:00
Evan Hunt
1656152d76
Ensure that POSIX strerror_r variant is use even when _GNU_SOURCE is enabled by default
2018-08-29 13:31:28 +02:00
Witold Kręcicki
103b60e0bc
Pre-merge nits
2018-08-28 20:25:36 +02:00
Evan Hunt
cddb699690
style nits
2018-08-28 20:19:47 +02:00
Mukund Sivaraman
700614a0eb
Set SO_SNDBUF
2018-08-28 20:19:47 +02:00
Ondřej Surý
fecbc7923a
Remove isc_keyboard family of functions as they were not used anywhere
2018-08-28 14:37:30 +02:00