Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
158ccf26
Commit
158ccf26
authored
Sep 07, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement verify_client_post_handshake; appveyor has TLS 1.3 now so those tests are running there.
parent
271e5865
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
1 deletion
+18
-1
CHANGES.rst
CHANGES.rst
+2
-0
src/gevent/_ssl3.py
src/gevent/_ssl3.py
+5
-0
src/gevent/tests/known_failures.py
src/gevent/tests/known_failures.py
+9
-0
src/gevent/tests/test__socket.py
src/gevent/tests/test__socket.py
+2
-1
No files found.
CHANGES.rst
View file @
158ccf26
...
...
@@ -16,6 +16,8 @@
- Improve the way joining the main thread works on Python 3.
- Implement ``SSLSocket.verify_client_post_handshake()`` when available.
1.5a1 (2019-05-02)
==================
...
...
src/gevent/_ssl3.py
View file @
158ccf26
...
...
@@ -678,6 +678,11 @@ class SSLSocket(socket):
return
None
return
self
.
_sslobj
.
tls_unique_cb
()
def
verify_client_post_handshake
(
self
):
# Only present in 3.7.1+; an attributeerror is alright
if
self
.
_sslobj
:
return
self
.
_sslobj
.
verify_client_post_handshake
()
raise
ValueError
(
"No SSL wrapper around "
+
str
(
self
))
# Python does not support forward declaration of types
SSLContext
.
sslsocket_class
=
SSLSocket
...
...
src/gevent/tests/known_failures.py
View file @
158ccf26
...
...
@@ -351,6 +351,15 @@ RUN_ALONE = [
'test__example_webproxy.py'
,
]
if
APPVEYOR
:
# Strange failures sometimes, but only on Python 3.7, reporting
# "ConnectionAbortedError: [WinError 10053] An established
# connection was aborted by the software in your host machine"
# when we've done no such thing. Try running not in parallel
RUN_ALONE
+=
[
'test__ssl.py'
,
'test__server.py'
,
]
if
APPVEYOR
or
TRAVIS
:
...
...
src/gevent/tests/test__socket.py
View file @
158ccf26
...
...
@@ -29,12 +29,13 @@ class Thread(_Thread):
def
__init__
(
self
,
**
kwargs
):
target
=
kwargs
.
pop
(
'target'
)
caller
=
getcurrent
()
@
wraps
(
target
)
def
errors_are_fatal
(
*
args
,
**
kwargs
):
try
:
return
target
(
*
args
,
**
kwargs
)
except
:
# pylint:disable=bare-except
getcurrent
().
parent
.
throw
(
*
sys
.
exc_info
())
caller
.
throw
(
*
sys
.
exc_info
())
_Thread
.
__init__
(
self
,
target
=
errors_are_fatal
,
**
kwargs
)
self
.
start
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment