Mercurial > p > roundup > code
changeset 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 | 5a2a89a2f4aa |
| children | d4f4061e6d1d |
| files | CHANGES.txt roundup/scripts/roundup_admin.py roundup/scripts/roundup_mailgw.py roundup/scripts/roundup_server.py |
| diffstat | 4 files changed, 16 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/CHANGES.txt Wed Apr 23 12:10:51 2003 +0000 +++ b/CHANGES.txt Thu Apr 24 04:28:33 2003 +0000 @@ -10,6 +10,7 @@ - can now unset values in CSV editing (sf bug 704788) - fixed rdbms email address lookup (case insensitivity) - email file attachments added to issue files list (sf bug 711501) +- added socket timeout to attempt to prevent stuck processes (sf bug 665487) 2003-02-27 0.5.6
--- a/roundup/scripts/roundup_admin.py Wed Apr 23 12:10:51 2003 +0000 +++ b/roundup/scripts/roundup_admin.py Thu Apr 24 04:28:33 2003 +0000 @@ -14,7 +14,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundup_admin.py,v 1.4 2002-09-10 01:07:06 richard Exp $ +# $Id: roundup_admin.py,v 1.4.2.1 2003-04-24 04:28:32 richard Exp $ # python version check from roundup import version_check @@ -26,6 +26,10 @@ import sys def run(): + # time out after a minute if we can + import socket + if hasattr(socket, 'setdefaulttimeout'): + socket.setdefaulttimeout(60) tool = AdminTool() sys.exit(tool.main())
--- a/roundup/scripts/roundup_mailgw.py Wed Apr 23 12:10:51 2003 +0000 +++ b/roundup/scripts/roundup_mailgw.py Thu Apr 24 04:28:33 2003 +0000 @@ -14,7 +14,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundup_mailgw.py,v 1.6 2002-09-13 00:08:44 richard Exp $ +# $Id: roundup_mailgw.py,v 1.6.2.1 2003-04-24 04:28:33 richard Exp $ # python version check from roundup import version_check @@ -104,6 +104,10 @@ db.close() def run(): + # time out after a minute if we can + import socket + if hasattr(socket, 'setdefaulttimeout'): + socket.setdefaulttimeout(60) sys.exit(main(sys.argv)) # call main
--- a/roundup/scripts/roundup_server.py Wed Apr 23 12:10:51 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.16.2.2 2003-02-06 05:44:49 richard Exp $ +$Id: roundup_server.py,v 1.16.2.3 2003-04-24 04:28:33 richard Exp $ """ # python version check @@ -240,6 +240,10 @@ 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
