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

32859 Commits

Author SHA1 Message Date
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
Thomas Markwalder
354312cd69 [#1818] Minor house keeping
modified:
    client.cc
    client.h
2021-05-17 10:56:50 -04:00
Thomas Markwalder
76a56bda64 [#1818] Replaced wait_for with wait HttpThreadPool lambda
modified:   http_thread_pool.cc
2021-05-17 10:56:49 -04:00
Thomas Markwalder
4b8ca2cd7f [#1818] Fixed spellings 2021-05-17 10:56:49 -04:00
Thomas Markwalder
3824f1f886 [#1818] Added pause and resume to HAService
HAService defers client start, and can now pause
and resume client and listener

src/hooks/dhcp/high_availability/ha_service.*
    HAService::HAService() - client start is now deferred
    HAService::startClientAndListener() - now starts client too

    HAService::pauseClientAndListener()
    HAService::resumeClientAndListener() - new methods

src/hooks/dhcp/high_availability/tests/ha_mt_unittest.cc
    TEST_F(HAMtServiceTest, multiThreadingBasics) - new test that
    verifies start,pause,resume and stop

src/lib/config/cmd_http_listener.*
    CmdHttpListener:
        Renamed io_service_ to thread_io_service_
        Added run state convenience methods
        Deleted isListening() method

src/lib/config/tests/cmd_http_listener_unittests.cc
    Updated tests

src/lib/http/client.*
    Clean up
    Added run state convenience methods

src/lib/http/tests/mt_client_unittests.cc
    Updated tests
2021-05-17 10:56:49 -04:00
Thomas Markwalder
5216d4c1f8 [#1818] Improved client unit tests
src/lib/http/client.cc
    Destination::closeAllConnections() - flushes the queue

src/lib/http/http_thread_pool.cc
    Took out debug couts
    HttpThreadPool::stop() - added call to IOService::poll()

src/lib/http/tests/mt_client_unittests.cc
    Got rid of startRequestSimple()
2021-05-17 10:56:49 -04:00
Thomas Markwalder
f50535683f [#1818] Added HttpClient thread pool deferred start
HttpClient's thread pool can now be started
post-construction via new start() method

src/lib/config/cmd_http_listener.*
    Clean up.

src/lib/config/tests/cmd_http_listener_unittests.cc
    Expanded testing.

src/lib/http/client.*
    HttpClient::HttpClient - added defer_thread_start parameter
    HttpClient::start() - new method to start thread-pool

src/lib/http/tests/mt_client_unittests.cc
    TEST_F(MtHttpClientTest, deferredStart) - new test
    TEST_F(MtHttpClientTest, restartAfterStop)  - new test
2021-05-17 10:56:49 -04:00
Thomas Markwalder
3c91727934 [#1818] Added missing test file
new file:
    http_thread_pool_unittests.cc
2021-05-17 10:56:49 -04:00
Thomas Markwalder
1e683dde86 [#1818] Pausable HttpThreadPool initial implemenation
src/lib/asiolink/io_service.*
    IOServcie::stopped()
    IOServcie::restart() - new wrapper methods

src/lib/http/http_thread_pool.*
    New files that implement HttpThreadPool class

src/lib/config/cmd_http_listener.*
    CmdHttpListner - retooled to use HttpThreadPool
    Added pause() and resume() methods

src/lib/config/tests/cmd_http_listener_unittests.cc
    Retooled and added unit tests for pause/resume

src/lib/http/Makefile.am
    Added http_thread_pool.*

src/lib/http/client.cc
    CmdHttpListner - retooled to use HttpThreadPool
    Added pause() and resume() methods

src/lib/http/tests/Makefile.am
    Added http_thread_pool_unittests.cc

src/lib/http/tests/mt_client_unittests.cc
    Retooled and added unit tests for pause/resume
2021-05-17 10:56:49 -04:00
Andrei Pavel
210973abbc
[#1560] add_css_file for sphinx >= v4 2021-05-17 16:06:40 +03:00
Wlodek Wencel
45803ae4ed [#1416] Changelog entry 2021-05-17 12:53:34 +00:00
Wlodek Wencel
bd9608f500 [#1416] docs, new tests, v4 and v6 address check 2021-05-17 12:53:34 +00:00
Wlodek Wencel
6128b399ef [#1416] perfdhcp v6 generate multiple subnet traffic 2021-05-17 12:53:34 +00:00
Michal Nowikowski
9082892afb [#1873] hammer: dropped support for python3 in building kea packages 2021-05-17 08:57:57 +02:00
Francis Dupont
0cf735721e [#1798] Addressed wording comments 2021-05-14 14:41:54 +02:00
Francis Dupont
a6845014d0 [#1798] Added short read errors 2021-05-12 11:41:00 +02:00
Francis Dupont
326a32ffa4 [#1798] Regen flex and bison eval 2021-05-12 09:01:05 +00:00
Francis Dupont
4a82021c98 [(no branch, rebasing 1798-remove-tls-stream-clear-operation)] [#1798] Reworded some comments 2021-05-11 18:02:34 +02:00
Francis Dupont
63fa6da188 [(no branch, rebasing 1798-remove-tls-stream-clear-operation)] [#1798] Reapplied #1807 patch 2021-05-11 18:02:34 +02:00
Francis Dupont
77299f07e9 [(no branch, rebasing 1798-remove-tls-stream-clear-operation)] [#1798] Addressed some comments 2021-05-11 18:02:34 +02:00
Francis Dupont
a725726782 [(no branch, rebasing 1798-remove-tls-stream-clear-operation)] [#1798] Tried to fix MT issues 2021-05-11 18:02:34 +02:00
Francis Dupont
e597b65c09 [(no branch, rebasing 1798-remove-tls-stream-clear-operation)] [#1798] Fixed missing space 2021-05-11 18:02:34 +02:00
Francis Dupont
ecd21ad477 [(no branch, rebasing 1798-remove-tls-stream-clear-operation)] [#1798] Added same address/port but different TLS context UTs 2021-05-11 18:02:34 +02:00
Francis Dupont
8ec151b999 [(no branch, rebasing 1798-remove-tls-stream-clear-operation)] [#1798] Checkpoint: removed clear 2021-05-11 18:02:34 +02:00
Francis Dupont
3a770602ae [(no branch, rebasing 1798-remove-tls-stream-clear-operation)] [#1798] Checkpoint: UTs to add 2021-05-11 18:02:34 +02:00