comparison roundup/scripts/roundup_server.py @ 1607:de4fa8bed9d3 maint-0.5

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 3a853f1c20b5
children
comparison
equal deleted inserted replaced
1603:5a2a89a2f4aa 1607:de4fa8bed9d3
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.16.2.2 2003-02-06 05:44:49 richard Exp $ 19 $Id: roundup_server.py,v 1.16.2.3 2003-04-24 04:28:33 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
238 return os.path.normpath(path) 238 return os.path.normpath(path)
239 239
240 def run(): 240 def run():
241 ''' Script entry point - handle args and figure out what to to. 241 ''' Script entry point - handle args and figure out what to to.
242 ''' 242 '''
243 # time out after a minute if we can
244 import socket
245 if hasattr(socket, 'setdefaulttimeout'):
246 socket.setdefaulttimeout(60)
243 hostname = '' 247 hostname = ''
244 port = 8080 248 port = 8080
245 pidfile = None 249 pidfile = None
246 logfile = None 250 logfile = None
247 try: 251 try:

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