W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 2000

Re: Trouble getting jigsaw to listen to one ip-adress

From: Yves Lafon <ylafon@w3.org>
Date: Fri, 28 Jan 2000 15:59:13 +0100 (MET)
To: Anders Meyer <Anders_Meyer@pol.dk>
cc: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
Message-ID: <Pine.GSO.4.21.0001281551420.2804-100000@tarantula.inria.fr>
On Fri, 28 Jan 2000, Anders Meyer wrote:

> Hi!
> 
> I am having some trouble with jigsaw - in takes up all ip-addresses 
> allthoug the socketbindaddress is specified - i looked at the 
> implementation:
>     public ServerSocket createServerSocket()
>         throws IOException
>     {
>         // using maxCLient in the backlog is safe, but an overkill :)
>         if (bindAddr != null) {
>             return new ServerSocket (server.getPort(), maxClients);
>         } else {
>             return new ServerSocket (server.getPort(),
>                                      Math.max(128, maxClients),
>                                      bindAddr);
>         }
>     }
> 
> 
> Hmmm... If bindaddr is defined it's not used! Is that a bug or did I miss 
> something?

Argh, a stupid typo! It should be "if (bindAddr == null)" of course.
Fixed and commited... Thanks!

      /\          - Yves Lafon - World Wide Web Consortium - 
  /\ /  \        Architecture Domain - Jigsaw Activity Leader
 /  \    \/\    
/    \   /  \   http://www.w3.org/People/Lafon - ylafon@w3.org    
Received on Friday, 28 January 2000 09:58:34 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:34 GMT