Hi ! Based on the freenet.thread.DynamicThreadFactory I have implemented a new way to refuse requests. The DynamicThreadFactory only allocates new threads if load is low and a thread is requested.
New requests are rejected, when there are some (currently: 7) events waiting in the ticker to be executed. This seems to be better than taking the number of running threads. Also with this implementeation the node cannot be flooded by client requests anymore (ok, it can, but the requests will just sit in the ticket and do nothing for some time ;) The code is ready (and working fine in my node), but I don't want to commit it, because some values (to be precise: DynamicThreadFactory.MIN_LOAD and MAX_LOAD as well as the maximum number of items) have to be made configureable. Since "end-users" won't be able to determine the best value for this, this has to be done automagically, or the values should be constants. But since I'm unable to test on many different machines (and determine these values), my question is: What do I do with the code? Commit ? Branch ? Make a download available for people to test ? Send the patch to the list ? Niklas _______________________________________________ Devl mailing list Devl at freenetproject.org http://lists.freenetproject.org/mailman/listinfo/devl
