• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MITLibraries / carbon
98%
main: 93%

Build:
Build:
LAST BUILD BRANCH: v3.1.0
DEFAULT BRANCH: main
Repo Added 23 Nov 2015 05:50PM UTC
Files 6
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH ssl-session
branch: ssl-session
CHANGE BRANCH
x
Reset
  • ssl-session
  • IN-1256-pip-audit
  • IN-1333-article-feed-date-scoped
  • IN-884-refactor-config-loading
  • IN-885-app-stabilization-linters
  • IN-885-app-stablization
  • IN-886-use-new-data-warehouse-secret
  • IN-887-use-new-symplectic-ftp-params
  • IN-889-configure-sentry
  • IN-905-refine-var-names-and-docstrings
  • IN-906-include-engine-creation-in-main
  • IN-907-define-feed-classes
  • IN-908-build-dev-testing-framework
  • IN-923-925-raise-exceptions-and-add-make-commands
  • IN-924-fix-ftp-file-transfer-method
  • IN-928-create-config-class
  • IN-930-add-diagrams-to-readme
  • aa-feed
  • add-areas
  • add-fields
  • aws-cli-v2
  • awsorg
  • carbon-refactor-improvements
  • case
  • certified
  • cli
  • cli-args
  • command-help
  • context
  • coverage
  • coveralls
  • create-diagram
  • dependabot/docker/python-3.12-slim
  • dependabot/pip/boto3-1.28.25
  • dependabot/pip/boto3-1.28.30
  • dependabot/pip/boto3-1.28.32
  • dependabot/pip/boto3-1.28.35
  • dependabot/pip/boto3-1.28.40
  • dependabot/pip/boto3-1.28.44
  • dependabot/pip/boto3-1.28.49
  • dependabot/pip/boto3-1.28.53
  • dependabot/pip/boto3-1.28.57
  • dependabot/pip/boto3-1.28.62
  • dependabot/pip/boto3-1.28.63
  • dependabot/pip/boto3-1.28.68
  • dependabot/pip/boto3-1.28.73
  • dependabot/pip/boto3-1.33.11
  • dependabot/pip/boto3-1.33.6
  • dependabot/pip/boto3-1.34.11
  • dependabot/pip/boto3-1.34.2
  • dependabot/pip/boto3-1.34.7
  • dependabot/pip/boto3-stubs-1.28.25
  • dependabot/pip/boto3-stubs-1.28.30
  • dependabot/pip/boto3-stubs-1.28.32
  • dependabot/pip/boto3-stubs-1.28.35
  • dependabot/pip/boto3-stubs-1.28.40
  • dependabot/pip/boto3-stubs-1.28.44
  • dependabot/pip/boto3-stubs-1.28.49
  • dependabot/pip/boto3-stubs-1.28.53
  • dependabot/pip/boto3-stubs-1.28.57
  • dependabot/pip/boto3-stubs-1.28.62
  • dependabot/pip/boto3-stubs-1.28.63
  • dependabot/pip/boto3-stubs-1.28.68
  • dependabot/pip/boto3-stubs-1.28.73
  • dependabot/pip/boto3-stubs-1.33.11
  • dependabot/pip/boto3-stubs-1.33.6
  • dependabot/pip/boto3-stubs-1.34.11
  • dependabot/pip/boto3-stubs-1.34.2
  • dependabot/pip/boto3-stubs-1.34.7
  • dependabot/pip/cryptography-3.2
  • dependabot/pip/cryptography-41.0.4
  • dependabot/pip/cryptography-41.0.6
  • dependabot/pip/lxml-4.6.2
  • dependabot/pip/lxml-4.6.3
  • dependabot/pip/moto-4.2.0
  • dependabot/pip/moto-4.2.10
  • dependabot/pip/moto-4.2.11
  • dependabot/pip/moto-4.2.12
  • dependabot/pip/moto-4.2.2
  • dependabot/pip/moto-4.2.3
  • dependabot/pip/moto-4.2.4
  • dependabot/pip/moto-4.2.5
  • dependabot/pip/moto-4.2.6
  • dependabot/pip/moto-4.2.7
  • dependabot/pip/moto-4.2.8
  • dependabot/pip/moto-4.2.9
  • dependabot/pip/mypy-1.6.0
  • dependabot/pip/mypy-1.6.1
  • dependabot/pip/mypy-1.7.1
  • dependabot/pip/mypy-1.8.0
  • dependabot/pip/py-1.10.0
  • dependabot/pip/pyyaml-5.4
  • dependabot/pip/sentry-sdk-1.32.0
  • dependabot/pip/sentry-sdk-1.38.0
  • dependabot/pip/sentry-sdk-1.39.1
  • dependabot/pip/types-setuptools-68.1.0.0
  • dependabot/pip/urllib3-1.25.8
  • dependabot/pip/urllib3-1.26.17
  • dependabot/pip/urllib3-1.26.18
  • dependabot/pip/werkzeug-3.0.1
  • deploy-bucket
  • deps
  • deps-upgrade
  • docker
  • docs
  • env-docs
  • fargate
  • field-fixes
  • fix-area
  • fix-release
  • fix-secrets
  • fixtures
  • flake8
  • ftp
  • github-actions
  • groups
  • hire-date
  • in-622-stage-deploy
  • infra-299-add-to-faculty-date
  • lambda
  • lambda-package
  • leave-dates
  • ll-employees
  • main
  • maintenace-week-07-2024
  • maintenance-week-07-2024
  • make-help
  • make-publish-fix
  • makefile
  • makefile-fix
  • master
  • mem-db
  • multifeeds
  • names
  • orcids
  • poc-maintainer-links
  • post-xml
  • readme
  • rebuild
  • refs/tags/v3.0.0
  • remove-old
  • req_fields
  • secret-id
  • start-date-2
  • stream-xml
  • timeout
  • unicle
  • update_sql
  • v1.1.0
  • v1.2.0
  • v2.0.0
  • v3.1.0

pending completion
172

Pull #50

travis-ci

web-flow
Support SSL session reuse in FTP client

There are a few problems with OpenSSL and Python's FTPs implementation.
Per RFC 4217, servers can require SSL session reuse between the command
and data channel. The stdlib ftplib module does not support this. In
these cases, OpenSSL provides poor error messaging and all you will
usually see is an Errno 0. Python's ssl module was modified in 3.6 to
support session reuse by allowing an existing session to be passed to an
SSLContext's wrap_socket method. This commit modifies the stdlib's
FTP_TLS class to make use of the new session parameter. See
https://bugs.python.org/issue19500 for background.

The second problem is that the data transfer commands--in our case,
storbinary--destroy (unwrap) the SSL session after completing the
transfer. This is problematic because with the above changes, the
session is also shared with the command channel. The unwrap call seems
to only really be necessary (I think) in cases where the underlying
unencrypted socket is going to be reused. This is not the case for us.
Calling quit() on the ftp connection should still cleanly shut down the
connection. This commit also removes the unwrap call. See
https://bugs.python.org/issue10808 for background.
Pull Request #50: Support SSL session reuse in FTP client

19 of 19 new or added lines in 1 file covered. (100.0%)

199 of 204 relevant lines covered (97.55%)

0.98 hits per line

Relevant lines Covered
Build:
Build:
204 RELEVANT LINES 199 COVERED LINES
0.98 HITS PER LINE
Source Files on ssl-session
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
172 ssl-session Support SSL session reuse in FTP client There are a few problems with OpenSSL and Python's FTPs implementation. Per RFC 4217, servers can require SSL session reuse between the command and data channel. The stdlib ftplib module does not support th... Pull #50 21 Sep 2018 06:17PM UTC web-flow travis-ci pending completion  
171 ssl-session Support SSL session reuse in FTP client There are a few problems with OpenSSL and Python's FTPs implementation. Per RFC 4217, servers can require SSL session reuse between the command and data channel. The stdlib ftplib module does not support th... push 21 Sep 2018 06:10PM UTC gravesm travis-ci pending completion  
See All Builds (456)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc