Roundup Tracker - Issues

Issue 777528

classification
roundup-server on port 80
Type: Severity: normal
Components: None Versions:
process
Status: closed fixed
:
: richard : pohly, richard
Priority: normal : patch

Created on 2003-07-25 13:13 by pohly, last changed 2003-07-25 13:13 by pohly.

Files
File name Uploaded Description Edit Remove
diff pohly, 2003-07-25 13:13 patch that allows to use priviliged ports
Messages
msg2629 Author: [hidden] (pohly) Date: 2003-07-25 13:13
I want to run the stand-alone roundup-server on port 80.
The reason is that I want to have a simple URL without
a :8080 suffix, but also want to avoid the extra work of
port forwarding, cgi installation, URL rewriting etc.

With the current 0.5.9 roundup-server this is not possible,
because even if started as root it drops this privilige
before opening the port. Attached is a patch that changes
that by opening the port first, then dropping the
privilige.
It also adds a command line switch to change
the group id.

The only caveat I see is that it might not be guaranteed
that
  httpd = BaseHTTPServer.HTTPServer(address,
RoundupRequestHandler)
opens the port at that time - in practice (python 2.2.1)
it does, so the patch works for me.

Perhaps this patch could be included in the 0.6 branch?
msg2630 Author: [hidden] (pohly) Date: 2003-07-25 13:16
Logged In: YES 
user_id=416927

Accidently this patch also fixes sf bug 692910 because
I also have that as a local modification - I meant to remove
that part of the diff, but forgot to save that before
submitting it.
History
Date User Action Args
2003-07-25 13:13:38pohlycreate