Skip to content
Snippets Groups Projects
  1. Nov 22, 2021
  2. Nov 16, 2021
    • John Snow's avatar
      python/aqmp: fix ConnectError string method · 25de7f50
      John Snow authored
      
      When ConnectError is used to wrap an Exception that was initialized
      without an error message, we are treated to a traceback with a rubbish
      line like this:
      
      ... ConnectError: Failed to establish session:
      
      Correct this to use the name of an exception as a fallback message:
      
      ... ConnectError: Failed to establish session: EOFError
      
      Better!
      
      Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
      Reported-by: default avatarThomas Huth <thuth@redhat.com>
      Tested-by: default avatarThomas Huth <thuth@redhat.com>
      Message-id: 20211111143719.2162525-3-jsnow@redhat.com
      Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
      25de7f50
    • John Snow's avatar
      python/aqmp: Fix disconnect during capabilities negotiation · f26bd6ff
      John Snow authored
      
      If we receive ConnectionResetError (ECONNRESET) while attempting to
      perform capabilities negotiation -- prior to the establishment of the
      async reader/writer tasks -- the disconnect function is not aware that
      we are in an error pathway.
      
      As a result, when attempting to close the StreamWriter, we'll see the
      same ConnectionResetError that caused us to initiate a disconnect in the
      first place, which will cause the disconnect task itself to fail, which
      emits a CRITICAL logging event.
      
      I still don't know if there's a smarter way to check to see if an
      exception received at this point is "the same" exception as the one that
      caused the initial disconnect, but for now the problem can be avoided by
      improving the error pathway detection in the exit path.
      
      Reported-by: default avatarThomas Huth <thuth@redhat.com>
      Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
      Tested-by: default avatarThomas Huth <thuth@redhat.com>
      Message-id: 20211111143719.2162525-2-jsnow@redhat.com
      Signed-off-by: default avatarJohn Snow <jsnow@redhat.com>
      f26bd6ff
  3. Nov 08, 2021
  4. Nov 01, 2021
  5. Oct 12, 2021
  6. Sep 27, 2021
Loading