Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
50a72af6
Commit
50a72af6
authored
Sep 11, 2017
by
Victor Stinner
Committed by
GitHub
Sep 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_ssl: Implement timeout in ssl_io_loop() (#3500)
The timeout parameter was not used.
parent
834a5cec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Lib/test/test_ssl.py
Lib/test/test_ssl.py
+3
-0
No files found.
Lib/test/test_ssl.py
View file @
50a72af6
...
@@ -1708,8 +1708,11 @@ class SimpleBackgroundTests(unittest.TestCase):
...
@@ -1708,8 +1708,11 @@ class SimpleBackgroundTests(unittest.TestCase):
# A simple IO loop. Call func(*args) depending on the error we get
# A simple IO loop. Call func(*args) depending on the error we get
# (WANT_READ or WANT_WRITE) move data between the socket and the BIOs.
# (WANT_READ or WANT_WRITE) move data between the socket and the BIOs.
timeout
=
kwargs
.
get
(
'timeout'
,
10
)
timeout
=
kwargs
.
get
(
'timeout'
,
10
)
deadline
=
time
.
monotonic
()
+
timeout
count
=
0
count
=
0
while
True
:
while
True
:
if
time
.
monotonic
()
>
deadline
:
self
.
fail
(
"timeout"
)
errno
=
None
errno
=
None
count
+=
1
count
+=
1
try
:
try
:
...
...
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