comparison roundup/scripts/roundup_server.py @ 1606:8b0bd0b897e6

added socket timeout to attempt to prevent stuck processes [SF#665487]
author Richard Jones <richard@users.sourceforge.net>
date Thu, 24 Apr 2003 04:28:33 +0000
parents 693b915041e6
children db8545f10476
comparison
equal deleted inserted replaced
1605:da7edcdd8500 1606:8b0bd0b897e6
14 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 14 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
16 # 16 #
17 """ HTTP Server that serves roundup. 17 """ HTTP Server that serves roundup.
18 18
19 $Id: roundup_server.py,v 1.21 2003-03-26 04:54:59 richard Exp $ 19 $Id: roundup_server.py,v 1.22 2003-04-24 04:27:32 richard Exp $
20 """ 20 """
21 21
22 # python version check 22 # python version check
23 from roundup import version_check 23 from roundup import version_check
24 24
252 return os.path.normpath(path) 252 return os.path.normpath(path)
253 253
254 def run(): 254 def run():
255 ''' Script entry point - handle args and figure out what to to. 255 ''' Script entry point - handle args and figure out what to to.
256 ''' 256 '''
257 # time out after a minute if we can
258 import socket
259 if hasattr(socket, 'setdefaulttimeout'):
260 socket.setdefaulttimeout(60)
261
257 hostname = '' 262 hostname = ''
258 port = 8080 263 port = 8080
259 pidfile = None 264 pidfile = None
260 logfile = None 265 logfile = None
261 try: 266 try:

Roundup Issue Tracker: http://roundup-tracker.org/