src/lib/dhcp/tests/iface_mgr_unittest.cc
Modified tests to verify that external socket callbacks receive
the correct socket descriptor when invoked by IfaceMgr.
src/lib/http/tests/server_client_unittests.cc
TEST_F(HttpClientTest, closeIfOutOfBandwidth) - new test to
verifies HttpClient::closeIfOutOfBandwidth()
[#964,!577] Revamped to detect and close OOB Connections
Rather than just unregistering the socket, we now actually close
the Connection. This ensures we never end up with an unregistered
but open connection.
src/hooks/dhcp/high_availability/ha_service.*
HAService::clientConnectHandler() - modified to call
HttpClient::closeIfOutOfBandwidth().
src/lib/http/client.*
Connection - replaced isTransaction(int socket_fd) with
isMySocket(int socket_fd)
ConnectionPool - replaced isTransaction(int socket_fd) with
closeIfOutOfBandwidth(int socket_fd)
HttpClient - replaced isTransaction(int socket_fd) with
closeIfOutOfBandwidth(int socket_fd)
[#964,!577] Added external socket ready handler to HAService
src/hooks/dhcp/high_availability/ha_service.*
HAService::socketReadyHandler(int tcp_native_fd) - new handler for external socket ready
callback. It detects out-of-transaction ready socket and unregisters it.
src/lib/http/client.*
isTransactionOngoing(int socket_fd) - new method to return true if any of the clients
connections are using the socket in an ongoing transaction