Mercurial > p > roundup > code
diff 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 |
line wrap: on
line diff
--- a/roundup/scripts/roundup_server.py Wed Apr 23 12:12:22 2003 +0000 +++ b/roundup/scripts/roundup_server.py Thu Apr 24 04:28:33 2003 +0000 @@ -16,7 +16,7 @@ # """ HTTP Server that serves roundup. -$Id: roundup_server.py,v 1.21 2003-03-26 04:54:59 richard Exp $ +$Id: roundup_server.py,v 1.22 2003-04-24 04:27:32 richard Exp $ """ # python version check @@ -254,6 +254,11 @@ def run(): ''' Script entry point - handle args and figure out what to to. ''' + # time out after a minute if we can + import socket + if hasattr(socket, 'setdefaulttimeout'): + socket.setdefaulttimeout(60) + hostname = '' port = 8080 pidfile = None
