[Date Prev] [Date Index] [Date Next] [Thread Prev] [Thread Index] [Thread Next]

Re: 8.1.x -b option fails to bind to port with more than 15 ports?

Bryan Stansell bryan@conserver.com
Tue, 6 Apr 2004 16:46:03 -0700 (PDT)


On Tue, Apr 06, 2004 at 05:39:44PM -0400, nathan r. hruby wrote:
> So, uhh.. is this a buglet? If so is there a workaround or am I just
> doing something dumb?  

thanks for providing all the info, and, yep, you've got yourself a
buglet.  congrats!  ;-)

luckily, it's an easy fix.  and sorry it was hangin' around all this
time...guess not many folks use -b in the 8.x.x world (with a bunch of
consoles).

for conserver-8.1.3 go to line 4512 of conserver/group.c:

  4510                                  (errno == EADDRINUSE) ||
  4511  #endif
  4512                                  (errno == EACCES)) && portInc++) {
  4513              lstn_port.sin_port = htons(bindBasePort + portInc);
  4514          } else {

and change that "portInc++" to a "++portInc".  the same can be applied
to conserver-8.1.1 on line 4406 (but if you've got 8.1.3 going, i'd
certainly stick with it).

hmmm...the 7.2.7 code appears to be the same.  i haven't tried it, but
it probably doesn't work either (doesn't look like it should).  anyone
out there trying to use that can apply the same fix to line 3316.

> Please help!  I'm *supposed* to be on vacation starting tomorrow
> morning and I'd really like to be!

hopefully this makes everything well and you can have a great vacation.

Bryan