2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

32833 Commits

Author SHA1 Message Date
Razvan Becheriu
4edc75087e [#1853] initialize htype_ in v4 ClientHandler::Client::Client 2021-05-21 14:01:58 +03:00
Razvan Becheriu
1c72fc1693 [#1851] fixed indentation 2021-05-20 21:06:10 +00:00
Razvan Becheriu
cce46baeff [#1851] memset MYSQL_TIME variables to 0 2021-05-20 21:06:10 +00:00
Marcin Siodelski
9ac322b6a7 [#1816] Addressed nit in a comment
As a result of review.
2021-05-20 16:22:16 +02:00
Marcin Siodelski
60dfb9c2d8 [#1816] Corrected a bug in subnet selection
The server respects the Subnet Selection option when the RAI is present,
but it lacks the Link Selection option. Previously, if RAI existed, the
Subnet Selection option was ignored even if RAI lacked the Link Selection
option.
2021-05-20 16:22:12 +02:00
Razvan Becheriu
014ed1ebe2 [#1805] removed comment 2021-05-20 17:06:18 +03:00
Razvan Becheriu
4029226686 [#1805] initialize Parameters.subnet_id member in constructor 2021-05-20 16:32:16 +03:00
Michal Nowikowski
92bb80d53f [#1877] updated base lxc container for centos-7 after #1877 changes 2021-05-20 13:35:03 +02:00
Michal Nowikowski
88a3ca103f [#1877] hammer: hardcoded sphinx version for centos 2021-05-20 13:35:03 +02:00
Michal Nowikowski
49fd1ed35d [#1877] fixed building docs by switching venv from py2 to py3 2021-05-20 13:35:03 +02:00
Thomas Markwalder
0a9b2a0dde [#1876] Added ChangeLog entry 2021-05-20 06:48:31 -04:00
Thomas Markwalder
5e8408b178 [#1876] Corrected MtHttpClientTest.workPauseResumeShutdown
src/lib/util/tests/client_mt_unittests.cc
    The test was modified to test that the majority
    of requests are fulfilled by worker threads rather
    than all of them.
2021-05-20 06:36:03 -04:00
Tomek Mrugalski
c0b44fdec8 [#1871] another contributor added to AUTHORS 2021-05-20 11:24:22 +02:00
Khem Raj
38f6f6272f include limits.h
Fixes build with gcc11
backend_selector.cc:61:35: error: 'numeric_limits' is not a member of 'std'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-20 11:21:06 +02:00
Khem Raj
d505f7a7d6 ax_cpp11.m4: Include <memory> header
This is needed for std::shared_ptr
GCC-11 throws errors if header is not included

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-05-20 11:21:06 +02:00
Thomas Markwalder
4d4cc92a71 [#1818] Addressed review comments
Minor cosmetics.
2021-05-19 16:15:59 -04:00
Thomas Markwalder
7e53ff36b3 [#1818] Refactored CriticalSection callbacks
util::NamedCallback replaced with CSCallbackPair
and absorbed into multi_threaded_mgr.*.  This
replaces two discrete lists of callbacks with a
single list of named, callback pairs.
2021-05-19 16:15:59 -04:00
Razvan Becheriu
40966798f7 [#1818] fixed typos 2021-05-19 16:15:59 -04:00
Razvan Becheriu
35d58fbfaf [#1818] fixed typo 2021-05-19 16:15:59 -04:00
Razvan Becheriu
9a0d9a4e18 [#1818] fixed doxygen and formatting 2021-05-19 16:15:59 -04:00
Thomas Markwalder
dce8dabc76 [#1818] Added exception handling and ChangeLog
src/hooks/dhcp/high_availability/ha_messages.mes
    HA_PAUSE_CLIENT_LISTENER_FAILED
    HA_RESUME_CLIENT_LISTENER_FAILED - new log messages

src/hooks/dhcp/high_availability/ha_service.cc
    HAService::pauseClientAndListener()
    HAService::resumeClientAndListener() - made exception-safe

src/lib/util/multi_threading_mgr.cc
    MultiThreadingMgr::stopProcessing()
    MultiThreadingMgr::startProcessing() - added exception-catch
    around callback invocations.
2021-05-19 16:15:11 -04:00
Thomas Markwalder
3df9289069 [#1818] Added Multithreading CS callbacks to HA
src/bin/dhcp4/dhcp4_srv.cc
    Dhcpv4Srv::run() - added CS prior to MultiThreadingMgr:apply()
    prior to exit

src/bin/dhcp6/dhcp6_srv.cc
    Dhcpv6Srv::run() - added CS prior to MultiThreadingMgr:apply()
    prior to exit

src/hooks/dhcp/high_availability/ha_service.*
    HAService::startClientAndListener() - added call to register
    CS callbacks

    HAService::stopClientAndListener() - added call to remove CS
    callbacks

src/hooks/dhcp/high_availability/tests/ha_mt_unittest.cc
    Revamped to test CS callbacks rather than pause/resume directly.

src/lib/util/Makefile.am
    Added named_callbacks.h/cc

src/lib/util/named_callback.cc
src/lib/util/named_callback.h
    - new files that implement an ordered list of named callbacks

src/lib/util/multi_threading_mgr.*
    MultiThreadingMgr::apply() - removes all CS callbacks when entering
    single-threaded mode

    MultiThreadingMgr::stopProcessing() - formerly stopPktProcessing, added
    call to invoke CS exit callbacks

    MultiThreadingMgr::startProcessing()  - formerly startPktProcessing,
    added call to invoke CS entry callbacks.

    MultiThreadingMgr::addCriticalSectionCallbacks() - new method for
    adding CS callbacks

    MultiThreadingMgr::removeCriticalSectionCallbacks() -  new method for
    removing CS callbacks

    MultiThreadingMgr::removeAllCriticalSectionCallbacks() - new method for
    all CS callbacks

src/lib/util/tests/Makefile.am
    Added named_callback_unittest.cc

src/lib/util/tests/named_callback_unittest.cc - tests for NamedCallback
classes

src/lib/util/tests/multi_threading_mgr_unittest.cc
    CriticalSectionCallbackTest - new test fixture
    TEST_F(CriticalSectionCallbackTest, basics) - new test
2021-05-19 16:14:16 -04:00
Francis Dupont
3e042611da [(no branch, rebasing 1815-add-new-drop-points)] [#1815] Added a ChangeLog entry 2021-05-19 17:21:46 +02:00
Francis Dupont
0a593e640f [(no branch, rebasing 1815-add-new-drop-points)] [#1815] Removed blank lines 2021-05-19 17:20:35 +02:00
Francis Dupont
bc25aa5e10 [(no branch, rebasing 1815-add-new-drop-points)] [(no branch, rebasing 1815-add-new-drop-points)] [#1815] Spelling 2021-05-19 17:20:35 +02:00
Francis Dupont
17ef4c0846 [(no branch, rebasing 1815-add-new-drop-points)] [(no branch, rebasing 1815-add-new-drop-points)] [#1815] Made v6 part 2021-05-19 17:20:35 +02:00
Francis Dupont
044fe70b95 [(no branch, rebasing 1815-add-new-drop-points)] [(no branch, rebasing 1815-add-new-drop-points)] [#1815] Added comments 2021-05-19 17:20:35 +02:00
Francis Dupont
a1b7e159f2 [(no branch, rebasing 1815-add-new-drop-points)] [(no branch, rebasing 1815-add-new-drop-points)] [#1815] Added a new unit test 2021-05-19 17:20:35 +02:00
Francis Dupont
02596244f5 [(no branch, rebasing 1815-add-new-drop-points)] [(no branch, rebasing 1815-add-new-drop-points)] [#1815] Checkpoint: v4 part done 2021-05-19 17:20:35 +02:00
Andrei Pavel
e1d2f3b8d7
[#1560] keep backwards compat with older sphinx 2021-05-19 16:45:38 +03:00
Andrei Pavel
01fdd5ac00
[#1680] minor rename and comment fix 2021-05-19 15:59:03 +03:00
Andrei Pavel
2bfd451834
[#1860] constructor, destructor -> SetUp, TearDown 2021-05-19 15:59:03 +03:00
Andrei Pavel
0b4b7fd648
[#1860] unit tests for lenient option parsing 2021-05-19 15:59:03 +03:00
Andrei Pavel
534f6ee13f
[#1860] documentation about lenient option parsing 2021-05-19 15:59:03 +03:00
Andrei Pavel
09ba8abf0b
[#1860] detemplated methods in OpaqueDataTuple 2021-05-19 15:59:03 +03:00
Andrei Pavel
3ab8e332c1
[#1860] add ChangeLog entry 2021-05-19 15:59:03 +03:00
Andrei Pavel
5329d68c4c
[#1860] document lenient option parsing 2021-05-19 15:59:03 +03:00
Andrei Pavel
4a491f693c
[#1860] unit tests for lenient option parsing 2021-05-19 15:59:03 +03:00
Andrei Pavel
5e94de9ed2
[#1860] lenient parsing logic for option 16 2021-05-19 15:59:02 +03:00
Andrei Pavel
7393a39bd9
[#1860] regenerate parsers 2021-05-19 15:59:02 +03:00
Andrei Pavel
2872ae70f9
[#1860] add "compatibility" parameter to parsers
and "lenient-option-parsing"
2021-05-19 15:59:02 +03:00
Razvan Becheriu
5877007f3d [#1818] added more checks in unittests 2021-05-17 18:45:20 +03:00
Thomas Markwalder
beb731f6b1 [#1818] Addressed review comments, minor cleanup.
Minor UT clean up:
src/hooks/dhcp/high_availability/tests/ha_mt_unittest.cc
src/lib/http/tests/mt_client_unittests.cc
2021-05-17 10:56:50 -04:00
Razvan Becheriu
35bc17e593 [#1818] clean up code 2021-05-17 10:56:50 -04:00
Razvan Becheriu
0dd1c2be4a [#1818] cleaning up code 2021-05-17 10:56:50 -04:00
Razvan Becheriu
78ff7f1a8e [#1818] make http thread pool state private and add missing interface functions 2021-05-17 10:56:50 -04:00
Thomas Markwalder
897139bca7 [#1818] Restored function after rebase
modified:   src/lib/http/client.cc
2021-05-17 10:56:50 -04:00
Thomas Markwalder
5d32e03e29 [#1818] Minor refactor and cosmetics
src/lib/http/http_thread_pool.*
    HttpThreadPool::setRunState() - extracted thread lambda
    into it's own function, HttpThreadPool::threadWork().

src/lib/config/tests/cmd_http_listener_unittests.cc
    Removed dead function, fixed typos., fixed typos., fixed typos., fixed typos.

src/lib/http/client.*
    Fixed typos.
2021-05-17 10:56:50 -04:00
Thomas Markwalder
0bfc1a73ab [#1818] Addressed some cosmetic review comments
modified:
    src/hooks/dhcp/high_availability/tests/ha_mt_unittest.cc
    src/lib/config/cmd_http_listener.h
    src/lib/http/client.cc
    src/lib/http/client.h
2021-05-17 10:56:50 -04:00
Thomas Markwalder
a2f4f6724c [#1818] Reimplemented HttpThreadPool internals
HttpThreadPool state changes are now synchronous.

src/lib/config/cmd_http_listener.cc
    Minor updates

src/lib/config/tests/cmd_http_listener_unittests.cc
    Revamped to use simplified command handling for
    pause/resume testing.

src/lib/http/client.*
    Minor updates

src/lib/http/http_thread_pool.*
    HttpThreadPool::setRunState() is now synchronous, returning
    only when all threads in the pool are in appropriate state
    or have been destroyed.

    Did away with SHUTDOWN state.
    Changed RUN to RUNNING

src/lib/http/tests/http_thread_pool_unittests.cc
    Revamped testing.

src/lib/http/tests/mt_client_unittests.cc
    Revamped to use request handler handling for pause/resume testing
2021-05-17 10:56:50 -04:00