Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
70c94bca
Commit
70c94bca
authored
Feb 03, 2016
by
Leigh B Stoller
Browse files
Turn on socket keep alives so that long running connections (say,
statewait) are not killed by the stateful firewall.
parent
4eeb7e8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlrpc/sslxmlrpc_server.py.in
View file @
70c94bca
#!/usr/local/bin/python
#
# Copyright (c) 2005-201
5
University of Utah and the Flux Group.
# Copyright (c) 2005-201
6
University of Utah and the Flux Group.
#
# {{{EMULAB-LICENSE
#
...
...
@@ -28,6 +28,7 @@ import pwd
import
traceback
import
syslog
import
string
import
socket
import
BaseHTTPServer
...
...
@@ -480,6 +481,13 @@ class MyServer(SSL.ForkingSSLServer, SimpleXMLRPCDispatcher):
try
:
self
.
setupuser
(
request
,
client_address
);
#
# New stateful firewall kills long term connections, as
# for state waiting.
#
request
.
socket
.
setsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_KEEPALIVE
,
1
);
# Remove the old path since the user can request a different
# one.
sys
.
path
.
remove
(
TBPATH
)
...
...
Write
Preview
Supports
Markdown
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