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
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
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()
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
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