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

32833 Commits

Author SHA1 Message Date
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
Razvan Becheriu
d2713aabb4 [#1680] use consistent name in unittests for connection recovery 2021-05-05 22:57:19 +03:00
Razvan Becheriu
8f8a753679 [#1680] added forensic documentation in hooks.rst 2021-05-05 22:38:41 +03:00
Razvan Becheriu
2e0e7d96ce [#1680] added forensic documentation in hooks.rst 2021-05-05 22:19:11 +03:00
Razvan Becheriu
b87d6856a9 [#1680] added forensic documentation in hooks.rst 2021-05-05 22:09:11 +03:00
Razvan Becheriu
42cd02f481 [#1680] fixed unittests 2021-05-05 20:12:49 +03:00
Razvan Becheriu
8ac89e660d [#1680] fixed documentation 2021-05-05 20:12:49 +03:00
Razvan Becheriu
b31051f9bc [#1680] fixed documentation 2021-05-05 20:12:49 +03:00
Razvan Becheriu
20f53a8d20 [#1680] fixed rebase 2021-05-05 20:12:49 +03:00
Andrei Pavel
c2e6dd6828 [#1680] forensic logging documentation 2021-05-05 20:12:49 +03:00
Razvan Becheriu
d9681e4bea [#1680] updated documentation 2021-05-05 20:12:49 +03:00
Razvan Becheriu
b5bd007c4f [#1680] added documentation 2021-05-05 20:12:49 +03:00
Razvan Becheriu
af08545ccd [#1680] added ChangeLog entry and addressed comments 2021-05-05 20:12:49 +03:00
Andrei Pavel
71cd0f495b [#1680] regenerated parsers 2021-05-05 20:12:18 +03:00
Razvan Becheriu
d796196fa9 [#1680] fixed compilation 2021-05-05 20:12:18 +03:00
Razvan Becheriu
f52a71e21f [#1680] fixed compilation 2021-05-05 20:12:18 +03:00
Razvan Becheriu
949e347607 [#1680] addressed comments 2021-05-05 20:12:18 +03:00
Razvan Becheriu
4612d7d2f9 Apply 1 suggestion(s) to 1 file(s) 2021-05-05 20:12:18 +03:00
Razvan Becheriu
745e4570f2 [#1680] removed unused function referencing unsafe localtime 2021-05-05 20:12:18 +03:00
Razvan Becheriu
f3d7b6f5fb [#1680] code cleanup 2021-05-05 20:12:18 +03:00
Razvan Becheriu
d6a7ab2b3a [#1680] fixed documentation 2021-05-05 20:12:18 +03:00
Razvan Becheriu
c58501de79 [#1680] fix indentation 2021-05-05 20:12:18 +03:00
Razvan Becheriu
4561635f23 [#1680] use relevant values in documentation 2021-05-05 20:12:18 +03:00
Razvan Becheriu
de1238cf91 [#1680] updated documentation 2021-05-05 20:12:18 +03:00
Razvan Becheriu
2c5ac0a501 [#1680] all tokens must not throw on empty string 2021-05-05 20:12:18 +03:00
Razvan Becheriu
cd32079830 [#1680] use consistent format 2021-05-05 20:12:18 +03:00
Razvan Becheriu
53258fa885 [#1680] added EvalContext convert functions 2021-05-05 20:12:18 +03:00