Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
af1e2004
Commit
af1e2004
authored
Jul 07, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaner fix.
I'd missed that you could get a transport's socket using get_extra_info.
parent
3d886d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/ZEO/asyncio/base.py
src/ZEO/asyncio/base.py
+6
-7
No files found.
src/ZEO/asyncio/base.py
View file @
af1e2004
...
@@ -46,13 +46,12 @@ class Protocol(asyncio.Protocol):
...
@@ -46,13 +46,12 @@ class Protocol(asyncio.Protocol):
def
connection_made
(
self
,
transport
):
def
connection_made
(
self
,
transport
):
logger
.
info
(
"Connected %s"
,
self
)
logger
.
info
(
"Connected %s"
,
self
)
if
(
sys
.
version_info
<
(
3
,
6
)
and
hasattr
(
transport
,
'_sock'
)
and
if
sys
.
version_info
<
(
3
,
6
):
transport
.
_sock
.
family
in
INET_FAMILIES
sock
=
transport
.
get_extra_info
(
'socket'
)
):
if
sock
is
not
None
and
sock
.
family
in
INET_FAMILIES
:
# See https://bugs.python.org/issue27456 :(
# See https://bugs.python.org/issue27456 :(
transport
.
_sock
.
setsockopt
(
sock
.
setsockopt
(
socket
.
IPPROTO_TCP
,
socket
.
TCP_NODELAY
,
True
)
socket
.
IPPROTO_TCP
,
socket
.
TCP_NODELAY
,
True
)
self
.
transport
=
transport
self
.
transport
=
transport
paused
=
self
.
paused
paused
=
self
.
paused
...
...
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