[ZCM] [ZC] 1042/ 3 Comment "Zope 2.7 port-base not calculating correctly"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Thu Oct 23 18:49:10 EDT 2003


Issue #1042 Update (Comment) "Zope 2.7 port-base not calculating correctly"
 Status Pending, Zope/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1042

==============================================================
= Comment - Entry #3 by mcdonc on Oct 23, 2003 6:49 pm

I'd really prefer that port-base didn't exist at all.  If Jim weren't the one that wanted it, I'd just rip it out. ;-)

That said, here's how it works: the value you define as "port-base" will be added to the port number you define in each server section.  It defaults to 0.  If you've got a web server on 8080 and a port-base of 0, the web server will run on 8080.  If you've got a web server on 8080 and a port-base of 1, it will run on 8081.

I think Jim's reasoning was that he wanted to be able to change the port base from the command line.  Maybe we should just take it out of the default config file and make it "Jim's undocumented option". ;-)

Relatedly, I think the fact that a zope.conf doesn't need any servers defined but still starts an ftp and web server is wrong.  I thought it was right at one point, but I think I'm going to change it so that Zope will start no servers if none are defined. 
________________________________________
= Comment - Entry #2 by limi on Sep 8, 2003 8:56 pm

Hm, I see now that the behaviour has been changed, this is not a good way of doing it, IMHO.

Having to input negative offsets from the value 8000 makes no sense to get something running on port 80.

port-base 0

should give you web on 80, ftp on 21 etc. port-base -8000 seems a bit silly, why the magical connection to the number 8000?

In any case, this is certain to trip up a lot of current users of Zope in addition to the newbies. If there's a good reason to change it, I'm all ears :)

________________________________________
= Request - Entry #1 by limi on Sep 8, 2003 8:50 pm

The port-base directive in zope.conf seems to be a bit confused.

I set it up with the instruction:

port-base 40000

Which (according to the instructions, and to the way it's always worked in previous zope versions) should give me web on 40080, ftp on 40021 etc.

What it ends ut doing is adding the base to the 8080 that exists originally, so it ends up running on port 48080 instead.

==============================================================




More information about the Zope-Collector-Monitor mailing list