1. 13 Dec, 2019 3 commits
  2. 05 Nov, 2019 3 commits
    • Thomas Markwalder's avatar
      [#964,!577] Revamped to detect and close OOB Connections · ed13fb5c
      Thomas Markwalder authored
      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)
      ed13fb5c
    • Thomas Markwalder's avatar
      [#964,!577] Added external socket ready handler to HAService · 16f37ca0
      Thomas Markwalder authored
      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
      16f37ca0
    • Thomas Markwalder's avatar
      [#964,!577] Added socket descriptor parameter to IfaceMgr external callback handler · 14742a09
      Thomas Markwalder authored
      src/lib/dhcp/iface_mgr.*
          typedef SocketCallback - added socket descriptpor parameter
          Added socket fd to invocations of socket ready callback
      
      src/bin/dhcp4/dhcp4to6_ipc.*
          void Dhcp4to6Ipc::handler(int /* fd */)
      
      src/bin/dhcp6/dhcp6to4_ipc.*
          void Dhcp6to4Ipc::handler(int /* fd */)
      
           Dhcp6to4Ipc& ipc = Dhcp6to4Ipc::instance();
           Pkt6Ptr pkt;
      
      src/hooks/dhcp/high_availability/ha_service.*
          socketReadyHandler() - initial stub implementation of socket ready handler
      14742a09
  3. 27 Jun, 2019 5 commits
    • Thomas Markwalder's avatar
      [#691,!395] More review comments · 4a0b024b
      Thomas Markwalder authored
      src/hooks/dhcp/high_availability/ha_messages.mes
          Removed HA_SERVICE_CONNECT_INVALID_SOCKET message
      
      src/hooks/dhcp/high_availability/ha_service.cc
          HAService::clientConnectHandler() - now just avoids registering
          an invalid FD with no log and return(true)
      
      src/lib/http/client.cc
          Added commen in Connection::close()
      
      src/lib/http/tests/server_client_unittests.cc
          Removed invalid FD failure in test
      4a0b024b
    • Marcin Siodelski's avatar
      d05ce7e6
    • Thomas Markwalder's avatar
      [#691,!395] Review comments 2 · cb11b477
      Thomas Markwalder authored
      src/hooks/dhcp/high_availability/ha_messages.mes
          HA_SERVICE_CONNECT_INVALID_SOCKET - new message
      
      src/hooks/dhcp/high_availability/ha_service.cc
       HAService::clientConnectHandler() - added negative fd logic
      
      src/lib/http/client.cc
          Connection::closeCallback() - new method that wraps invocation
          of close callback in try-catch.
      
      src/lib/http/http_messages.mes
          HTTP_CONNECTION_CLOSE_CALLBACK_FAILED - new message
      cb11b477
    • Thomas Markwalder's avatar
      [#691,!395] Addressed review comments 1 · de3af2b8
      Thomas Markwalder authored
          Added TIMEOUT_DEFAULT_HTTP_CLIENT_REQUEST
          Removed virtual from callback declarations
          Added commentary to http/client.h
      de3af2b8
    • Thomas Markwalder's avatar
      [#691,!395] HAService now registers HTTP client sockets with InterfaceMgr · ff3d254d
      Thomas Markwalder authored
      src/hooks/dhcp/high_availability/ha_service.cc
      
          HAService
              clientConnectHandler() - new client connection connect callback
              clientCloseHandler() - new client connection close callback
      
              asyncSendLeaseUpdate()
              asyncSendHeartbeat()
              asyncDisableDHCPService()
              asyncEnableDHCPService()
              asyncSyncLeasesInternal() - added new call backs to
              HttpClient::asyncSendRequest() invocation
      
      src/lib/http/client.cc
          Connection::resetState() - added reset of close callback
      ff3d254d
  4. 24 Jun, 2019 3 commits
  5. 28 May, 2019 1 commit
  6. 29 Apr, 2019 1 commit
  7. 05 Nov, 2018 5 commits
  8. 19 Jul, 2018 1 commit
  9. 18 Jul, 2018 3 commits
  10. 11 Jul, 2018 2 commits
  11. 10 Jul, 2018 2 commits
  12. 27 Jun, 2018 1 commit
  13. 14 Jun, 2018 3 commits
  14. 08 Jun, 2018 2 commits