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

Re: [leafnode-list] fetchnews in parallel?

David Cantrell <david@xxxxxxxxxxxxxxx> writes:

> On Tue, Jul 09, 2002 at 12:24:39AM +0200, Matthias Andree wrote:
>> That would indeed be nice to have, but currently, servers must still be
>> queried sequentially, even in leafnode 2.x. There are two and a half
>> places in the leafnode spool that require this:
>> ...
>> I'm not sure if multi-threading could help us here or bring us there
>> faster than multi-process can (fork()) -- only that I'm not really
>> acquainted with threads.
> Without going to threads, would it be possible to use some select()
> magic to talk to several servers at once in the same process?

Not too bad an idea either. 

>> Therefore, I cannot promise leafnode 2.0.0.rel will have this feature as
>> it is released (talk about the future...), because I cannot defer
>> leafnode 2.0.0.rel ad infinitum. Sorry.
> Oh sure, something like this, even using select() would require fairly
> major re-working of fetchnews's core.

Well, somewhat. Some modularization has happened recently; effectively,
all server-related stuff would need to be in a control structure (and
then choosing between select() and fork() should be no big difference).

Matthias Andree

leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list