Ticket #2874 enhancement closed fixed

Opened 6 years ago

Last modified 5 years ago

_sslverify.problemsFromTransport should be deprecated

Reported by: therve Owned by:
Priority: normal Milestone:
Component: core Keywords:
Cc: Branch: branches/delete-problemsFromTransport-2874
Author: exarkun Launchpad Bug:

Description

It's obsolete, but we should first remove its use in amp.

Change History

1

Changed 5 years ago by exarkun

  • branch set to branches/delete-problemsFromTransport-2874
  • author set to exarkun

(In [24195]) Branching to 'delete-problemsFromTransport-2874'

2

Changed 5 years ago by exarkun

(In [24196]) remove usage of problemsFromTransport from amp and then remove problemsFromTransport and all related support code

refs #2874

3

Changed 5 years ago by exarkun

  • owner glyph deleted

It's removed. There's one small change in behavior. AMP IBoxReceivers now get the underlying OpenSSL exception passed to their stopReceivingBoxes method instead of an OpenSSLVerifyError (which was never exposed publically).

The underlying OpenSSL exception has more useful information in it, so this seems like an improvement to me. The most likely way this could break someone's program is if they imported OpenSSLVerifyError from the private twisted.internet._sslverify and did type checking on exceptions. That exception is no longer defined, so they'll get an ImportError.

Build results are here:

 http://buildbot.twistedmatrix.com/boxes-supported?branch=/branches/delete-problemsFromTransport-2874&num_builds=1

4

Changed 5 years ago by exarkun

  • keywords review added

5

Changed 5 years ago by therve

  • owner set to exarkun
  • keywords review removed

Please merge.

6

Changed 5 years ago by exarkun

  • status changed from new to closed
  • resolution set to fixed

(In [24403]) Merge delete-problemsFromTransport-2874

Author: exarkun Reviewer: therve Fixes: #2874

Remove the private problemsFromTransport API which exposed OpenSSL errors. This API was redundant with IProtocol.connectionLost, which is called with a Failure wrapped around an OpenSSL.SSL.Error if there is a problem with SSL which results in the connection being lost.

AMP is also changed to use the failure passed to connectionLost rather than problemsFromTransport.

7

Changed 2 years ago by <automation>

  • owner exarkun deleted
Note: See TracTickets for help on using tickets.