Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-78742

Ensure that connection fatal socket exceptions are respected in PyKMIP

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0, 7.0.0-rc8, 6.0.9
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • v7.0, v6.0
    • Security 2023-07-10
    • 5

      PyKMIP emits a specific exception in its message handling loop when it believes that a socket fatal condition has occured. This exception is used to terminate the KMIP session. On Linux, it's able to pretty reliably detect a closed connection. On Windows, the socket stack emits an error like ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host. PyKMIP does not map this ConnectionResetError exception into its equivalent internal exception type.

      We should perform this mapping, in order to get PyKMIP to gracefully respond to client hangups on all platforms, and not emit huge amounts of log messages on Windows.

            spencer.jackson@mongodb.com Spencer Jackson
            spencer.jackson@mongodb.com Spencer Jackson
            0 Vote for this issue
            2 Start watching this issue