Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue13634

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Python SSL stack doesn't support Compression configuration
Type:enhancementStage:resolved
Components:Library (Lib)Versions:Python 3.3
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To:Nosy List: jcea, naif, pitrou, python-dev
Priority:normalKeywords:patch

Created on2011-12-19 10:39 bynaif, last changed2022-04-11 14:57 byadmin. This issue is nowclosed.

Files
File nameUploadedDescriptionEdit
compression.patchpitrou,2011-12-19 14:47review
Messages (6)
msg149830 -(view)Author: naif (naif)Date: 2011-12-19 10:39
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
msg149838 -(view)Author: Antoine Pitrou (pitrou)*(Python committer)Date: 2011-12-19 10:58
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
msg149864 -(view)Author: Antoine Pitrou (pitrou)*(Python committer)Date: 2011-12-19 14:47
Here is a patch.
msg149865 -(view)Author: Antoine Pitrou (pitrou)*(Python committer)Date: 2011-12-19 14:48
(note that some OpenSSLs are built without compression, such as Mageia's)
msg149906 -(view)Author: Roundup Robot (python-dev)(Python triager)Date: 2011-12-20 09:14
New changeset20b52be99b5d by Antoine Pitrou in branch 'default':Issue#13634: Add support for querying and disabling SSL compression.http://hg.python.org/cpython/rev/20b52be99b5d
msg149907 -(view)Author: Antoine Pitrou (pitrou)*(Python committer)Date: 2011-12-20 09:19
Now committed in 3.3.
History
DateUserActionArgs
2022-04-11 14:57:24adminsetgithub: 57843
2011-12-20 09:19:08pitrousetstatus: open -> closed
resolution: fixed
messages: +msg149907

stage: patch review -> resolved
2011-12-20 09:14:21python-devsetnosy: +python-dev
messages: +msg149906
2011-12-20 01:31:41jceasetnosy: +jcea
2011-12-19 14:48:31pitrousetmessages: +msg149865
2011-12-19 14:47:17pitrousetfiles: +compression.patch
keywords: +patch
messages: +msg149864

stage: needs patch -> patch review
2011-12-19 10:58:04pitrousetversions: - Python 2.6, Python 3.1, Python 2.7, Python 3.2, Python 3.4
nosy: +pitrou

messages: +msg149838

type: enhancement
stage: needs patch
2011-12-19 10:39:58naifcreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp