René's URL Explorer Experiment


Title: SSL server sockets that haven't completed handshake lead to log spew on loop close · Issue #487 · python/asyncio · GitHub

Open Graph Title: SSL server sockets that haven't completed handshake lead to log spew on loop close · Issue #487 · python/asyncio

X Title: SSL server sockets that haven't completed handshake lead to log spew on loop close · Issue #487 · python/asyncio

Description: This is very similar in root cause to issue #483 - SSL handshakes that have been initiated but not completed. This code in sslproto.py: if compat.PY34: def __del__(self): if not self._closed: warnings.warn("unclosed transport %r" % self,...

Open Graph Description: This is very similar in root cause to issue #483 - SSL handshakes that have been initiated but not completed. This code in sslproto.py: if compat.PY34: def __del__(self): if not self._closed: warni...

X Description: This is very similar in root cause to issue #483 - SSL handshakes that have been initiated but not completed. This code in sslproto.py: if compat.PY34: def __del__(self): if not self._closed: warni...

Opengraph URL: https://github.com/python/asyncio/issues/487

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SSL server sockets that haven't completed handshake lead to log spew on loop close","articleBody":"This is very similar in root cause to issue #483 - SSL handshakes that have been initiated but not completed.   This code in sslproto.py:\r\n\r\n    if compat.PY34:\r\n        def __del__(self):\r\n            if not self._closed:\r\n                warnings.warn(\"unclosed transport %r\" % self, ResourceWarning)\r\n                self.close()\r\n\r\nleads to annoying log spew that is out of the control of the server developer.  The cause is wrapped SSL sockets that have not completed their handshake and that therefore the transport has not been provided to the protocol's connection_made() callback.  As server developer I therefore have no way to cleanly close down these transports.  So when the server admin shuts down the server, which does cleanly close all the transports it is aware of then does a loop.close() and exits, he is left with many messages like this sent to the logs.  This is unsightly and frustrating as I am unable to prevent it.\r\n\r\nPerhaps the above code in `__del__() `should not be executed if the loop has been closed?\r\n\r\n017-01-20 19:32:16.331209500 Exception ignored in: \u003cbound method _SSLProtocolTransport.__del__ of \u003casyncio.sslproto._SSLProtocolTransport object at 0x80a8e5e10\u003e\u003e\r\n2017-01-20 19:32:16.331215500 Traceback (most recent call last):\r\n2017-01-20 19:32:16.331218500   File \"/usr/local/lib/python3.5/asyncio/sslproto.py\", line 328, in __del__\r\n2017-01-20 19:32:16.331220500     self.close()\r\n2017-01-20 19:32:16.331222500   File \"/usr/local/lib/python3.5/asyncio/sslproto.py\", line 319, in close\r\n2017-01-20 19:32:16.331224500     self._ssl_protocol._start_shutdown()\r\n2017-01-20 19:32:16.331340500   File \"/usr/local/lib/python3.5/asyncio/sslproto.py\", line 542, in _start_shutdown\r\n2017-01-20 19:32:16.331343500     self._write_appdata(b'')\r\n2017-01-20 19:32:16.331345500   File \"/usr/local/lib/python3.5/asyncio/sslproto.py\", line 547, in _write_appdata\r\n2017-01-20 19:32:16.331347500     self._process_write_backlog()\r\n2017-01-20 19:32:16.331349500   File \"/usr/local/lib/python3.5/asyncio/sslproto.py\", line 649, in _process_write_backlog\r\n2017-01-20 19:32:16.331359500     self._on_handshake_complete(exc)\r\n2017-01-20 19:32:16.331361500   File \"/usr/local/lib/python3.5/asyncio/sslproto.py\", line 587, in _on_handshake_complete\r\n2017-01-20 19:32:16.331364500     self._wakeup_waiter(exc)\r\n2017-01-20 19:32:16.331366500   File \"/usr/local/lib/python3.5/asyncio/sslproto.py\", line 445, in _wakeup_waiter\r\n2017-01-20 19:32:16.331368500     self._waiter.set_exception(exc)\r\n2017-01-20 19:32:16.331378500   File \"/usr/local/lib/python3.5/asyncio/futures.py\", line 349, in set_exception\r\n2017-01-20 19:32:16.331393500     self._schedule_callbacks()\r\n2017-01-20 19:32:16.331395500   File \"/usr/local/lib/python3.5/asyncio/futures.py\", line 242, in _schedule_callbacks\r\n2017-01-20 19:32:16.331398500     self._loop.call_soon(callback, self)\r\n2017-01-20 19:32:16.331400500   File \"/usr/local/lib/python3.5/asyncio/base_events.py\", line 497, in call_soon\r\n2017-01-20 19:32:16.331403500     handle = self._call_soon(callback, args)\r\n2017-01-20 19:32:16.331412500   File \"/usr/local/lib/python3.5/asyncio/base_events.py\", line 506, in _call_soon\r\n2017-01-20 19:32:16.331414500     self._check_closed()\r\n2017-01-20 19:32:16.331416500   File \"/usr/local/lib/python3.5/asyncio/base_events.py\", line 334, in _check_closed\r\n2017-01-20 19:32:16.331419500     raise RuntimeError('Event loop is closed')\r\n2017-01-20 19:32:16.331421500 RuntimeError: Event loop is closed\r\n20","author":{"url":"https://github.com/kyuupichan","@type":"Person","name":"kyuupichan"},"datePublished":"2017-01-20T10:57:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/487/asyncio/issues/487"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:275bd5da-74bf-27b2-2740-3289dad2f4db
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id980C:254E6C:5817991:7350F05:696D4EB6
html-safe-nonceb261b29e0805f5107630c913353d77a0de1a802f2b98a2bc6bd9dd697e02e6d4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODBDOjI1NEU2Qzo1ODE3OTkxOjczNTBGMDU6Njk2RDRFQjYiLCJ2aXNpdG9yX2lkIjoiODExMDExMjA4NzM4OTA2NDg4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3cd6228fc7b2e9afc99e8f9a13259407ba065ac95d7f31b84927a5d40fccb3b6
hovercard-subject-tagissue:202111872
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/asyncio/487/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8d9c1af653e62efbac26e44cdb70a66423b42c1879d70661e2b2217772186f87/python/asyncio/issues/487
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8d9c1af653e62efbac26e44cdb70a66423b42c1879d70661e2b2217772186f87/python/asyncio/issues/487
og:image:altThis is very similar in root cause to issue #483 - SSL handshakes that have been initiated but not completed. This code in sslproto.py: if compat.PY34: def __del__(self): if not self._closed: warni...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekyuupichan
hostnamegithub.com
expected-hostnamegithub.com
None0944e430045f4fb5f7bd103e0660080acfe593174063212555773ca41c144a14
turbo-cache-controlno-preview
go-importgithub.com/python/asyncio git https://github.com/python/asyncio.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id33739295
octolytics-dimension-repository_nwopython/asyncio
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id33739295
octolytics-dimension-repository_network_root_nwopython/asyncio
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release66b6e773801d28660016072069017cfcc851f54b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python/asyncio/issues/487#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fasyncio%2Fissues%2F487
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fasyncio%2Fissues%2F487
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fasyncio
Reloadhttps://patch-diff.githubusercontent.com/python/asyncio/issues/487
Reloadhttps://patch-diff.githubusercontent.com/python/asyncio/issues/487
Reloadhttps://patch-diff.githubusercontent.com/python/asyncio/issues/487
python https://patch-diff.githubusercontent.com/python
asynciohttps://patch-diff.githubusercontent.com/python/asyncio
Please reload this pagehttps://patch-diff.githubusercontent.com/python/asyncio/issues/487
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fasyncio
Fork 185 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fasyncio
Star 1.1k https://patch-diff.githubusercontent.com/login?return_to=%2Fpython%2Fasyncio
Code https://patch-diff.githubusercontent.com/python/asyncio
Issues 76 https://patch-diff.githubusercontent.com/python/asyncio/issues
Pull requests 10 https://patch-diff.githubusercontent.com/python/asyncio/pulls
Actions https://patch-diff.githubusercontent.com/python/asyncio/actions
Projects 0 https://patch-diff.githubusercontent.com/python/asyncio/projects
Wiki https://patch-diff.githubusercontent.com/python/asyncio/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/python/asyncio/security
Please reload this pagehttps://patch-diff.githubusercontent.com/python/asyncio/issues/487
Insights https://patch-diff.githubusercontent.com/python/asyncio/pulse
Code https://patch-diff.githubusercontent.com/python/asyncio
Issues https://patch-diff.githubusercontent.com/python/asyncio/issues
Pull requests https://patch-diff.githubusercontent.com/python/asyncio/pulls
Actions https://patch-diff.githubusercontent.com/python/asyncio/actions
Projects https://patch-diff.githubusercontent.com/python/asyncio/projects
Wiki https://patch-diff.githubusercontent.com/python/asyncio/wiki
Security https://patch-diff.githubusercontent.com/python/asyncio/security
Insights https://patch-diff.githubusercontent.com/python/asyncio/pulse
SSL server sockets that haven't completed handshake lead to log spew on loop closehttps://patch-diff.githubusercontent.com/python/asyncio/issues/487#top
https://github.com/kyuupichan
https://github.com/kyuupichan
kyuupichanhttps://github.com/kyuupichan
on Jan 20, 2017https://github.com/python/asyncio/issues/487#issue-202111872
#483https://github.com/python/asyncio/issues/483
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.