Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Zope
Commits
c7348640
Commit
c7348640
authored
Aug 17, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added sockopt setting to avoid buffering in the loopback select trigger.
parent
ae16bd0b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ZServer/medusa/select_trigger.py
ZServer/medusa/select_trigger.py
+4
-1
lib/python/ZServer/medusa/select_trigger.py
lib/python/ZServer/medusa/select_trigger.py
+4
-1
No files found.
ZServer/medusa/select_trigger.py
View file @
c7348640
# -*- Mode: Python; tab-width: 4 -*-
VERSION_STRING
=
"$Id: select_trigger.py,v 1.
5 1999/07/20 16:53:50 amos
Exp $"
VERSION_STRING
=
"$Id: select_trigger.py,v 1.
6 1999/08/17 20:29:20 brian
Exp $"
import
asyncore
import
asynchat
...
...
@@ -99,6 +99,9 @@ else:
a
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
w
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
# set TCP_NODELAY to true to avoid buffering
w
.
setsockopt
(
socket
.
IPPROTO_TCP
,
1
,
1
)
# tricky: get a pair of connected sockets
a
.
bind
(
self
.
address
)
a
.
listen
(
1
)
...
...
lib/python/ZServer/medusa/select_trigger.py
View file @
c7348640
# -*- Mode: Python; tab-width: 4 -*-
VERSION_STRING
=
"$Id: select_trigger.py,v 1.
5 1999/07/20 16:53:50 amos
Exp $"
VERSION_STRING
=
"$Id: select_trigger.py,v 1.
6 1999/08/17 20:29:20 brian
Exp $"
import
asyncore
import
asynchat
...
...
@@ -99,6 +99,9 @@ else:
a
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
w
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
# set TCP_NODELAY to true to avoid buffering
w
.
setsockopt
(
socket
.
IPPROTO_TCP
,
1
,
1
)
# tricky: get a pair of connected sockets
a
.
bind
(
self
.
address
)
a
.
listen
(
1
)
...
...
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