Skip to content

Python SSL stack doesn't support Compression configuration #57843

Closed

Description

@naif
mannequin
BPO 13634
Nosy @jcea, @pitrou
Files
  • compression.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2011-12-20.09:19:08.287>
    created_at = <Date 2011-12-19.10:39:58.577>
    labels = ['type-feature', 'library']
    title = "Python SSL stack doesn't support Compression configuration"
    updated_at = <Date 2011-12-20.09:19:08.286>
    user = 'https://bugs.python.org/naif'

    bugs.python.org fields:

    activity = <Date 2011-12-20.09:19:08.286>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2011-12-20.09:19:08.287>
    closer = 'pitrou'
    components = ['Library (Lib)']
    creation = <Date 2011-12-19.10:39:58.577>
    creator = 'naif'
    dependencies = []
    files = ['24052']
    hgrepos = []
    issue_num = 13634
    keywords = ['patch']
    message_count = 6.0
    messages = ['149830', '149838', '149864', '149865', '149906', '149907']
    nosy_count = 4.0
    nosy_names = ['jcea', 'pitrou', 'python-dev', 'naif']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue13634'
    versions = ['Python 3.3']

    Activity

    1. naif commented on Dec 19, 2011

      naifmannequin
      MannequinAuthor

      TLSv1 support compression with gzip/deflate that can provide for a lot of protocols a great improvement (just think about SIP/TLS or IMAP) in terms of bandwidth.

      Currenly Python SSL stack based on OpenSSL doesn't allow the configuration (enabling/disabling/forcing) of TLS compression.

      This ticket is about suggesting to implement TLS compression configuration of OpenSSL as described on:
      http://blog.dave.cridland.net/?p=73

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Dec 19, 2011
    3. pitrou commented on Dec 19, 2011

      @pitrou
      Member

      So, there are two things here:

      • allow to disable compression (it's enabled by default AFAICT) using the SSL_OP_NO_COMPRESSION flag
      • allow to query compression status on SSL sockets using the SSL_get_current_compression() API
    4. pitrou commented on Dec 19, 2011

      @pitrou
      Member

      Here is a patch.

    5. pitrou commented on Dec 19, 2011

      @pitrou
      Member

      (note that some OpenSSLs are built without compression, such as Mageia's)

    6. python-dev commented on Dec 20, 2011

      python-devmannequin
      Mannequin

      New changeset 20b52be99b5d by Antoine Pitrou in branch 'default':
      Issue bpo-13634: Add support for querying and disabling SSL compression.
      http://hg.python.org/cpython/rev/20b52be99b5d

    7. pitrou commented on Dec 20, 2011

      @pitrou
      Member

      Now committed in 3.3.

    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions