On Mon, Oct 22, 2001 at 03:21:19PM +0200, Volker Stolz wrote:
> Hi, I was browsing through the networking code and noticed an odd thing:
> TCP sockets support a listen-backlog, i.e. the number of maximum pending
> copnnections. This is initialised to 50 and never changed.
> 
> Wouldn't it be interesting to see if it would be sensible to modify the
> backlog depending on the number of available threads and already
> established connections?

It does not look as if there is any way of changing that number in java
without bringing down and restarting the listening socket, which is less
than ideal.

> OTOH, how much sense does *first* accepting a connection and *then*
> deciding whether to drop it immediately make? Not much, IMO.
> [The code im referring to is in interfaces/Interface.java &
> interfaces/PublicInterface.java/dispatch]

Things may have changed quite a lot between when you call accept() and
when it returns. Having another Thread bringing the listening socket up
and down to change the backlog the whole time would add a lot more pain
then it brings benefit.

> Which brings me to the last issue: Could someone please
> give me a hint as to what put into my CLASSSPATH to compile
> Freenet on Linux or BSD? It's always missing symbols or packages,
> and IANAJE.

The superdir of your Freenet directory of course. Depending on what you
are building, you may also need to make the Contrib/javax and
Contrib/junit classes available.

> -- 
> Volker Stolz * vs at foldr.org * PGP + S/MIME
> 
> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://lists.freenetproject.org/mailman/listinfo/devl

-- 

Oskar Sandberg
oskar at freenetproject.org

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to