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
b166329e
Commit
b166329e
authored
Oct 10, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Back to 1024 as a default for all python 2.7; it was handled that way internally anyway.
parent
5ebc4061
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
src/gevent/_sslgte279.py
src/gevent/_sslgte279.py
+1
-5
No files found.
src/gevent/_sslgte279.py
View file @
b166329e
...
...
@@ -164,10 +164,6 @@ _create_default_https_context = create_default_context
# Backwards compatibility alias, even though it's not a public name.
_create_stdlib_context
=
_create_unverified_context
import
sys
# This changed with the fix for python bug #23804
_DEFAULT_READ_LEN
=
0
if
sys
.
version_info
[:
3
]
<
(
2
,
7
,
12
)
else
1024
class
SSLSocket
(
socket
):
"""
gevent `ssl.SSLSocket <https://docs.python.org/2/library/ssl.html#ssl-sockets>`_
...
...
@@ -299,7 +295,7 @@ class SSLSocket(socket):
# EAGAIN.
self
.
getpeername
()
def
read
(
self
,
len
=
_DEFAULT_READ_LEN
,
buffer
=
None
):
def
read
(
self
,
len
=
1024
,
buffer
=
None
):
"""Read up to LEN bytes and return them.
Return zero-length string on EOF."""
self
.
_checkClosed
()
...
...
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