> -Messaggio originale-
> Da: Mark Martinec [mailto:[EMAIL PROTECTED]
>
> Giampaolo,
>
> > Well, I have 3.2.1 and the excerpt from AsyncLoop.pm was from there.
> > But anyway, how is supposed to be set the timeout value of a non-DNS
> query?
>
> The current code in trunk is able to speci
Giampaolo,
> Well, I have 3.2.1 and the excerpt from AsyncLoop.pm was from there.
> But anyway, how is supposed to be set the timeout value of a non-DNS query?
The current code in trunk is able to specify and honour individual
timeouts for each async request - and it defaults to rbl_timeout
if no
> -Messaggio originale-
> Da: Mark Martinec [mailto:[EMAIL PROTECTED]
>
> Giampaolo,
>
>
> Not really (at least not in the current trunk I'm looking at).
> As long as there are any (non timed-out) requests in %$pending,
> it does not terminate, even if poll returns empty-handed.
Well, I
Mark Martinec writes:
> > Almost. One of the biggest problems I see is that one can't register a
> > socket with AsyncLoop.pm. Thereby, when DNS lookups are finished, the whole
> > loop stops regardless of outstanding non-DNS-based lookups.
> >
> > See sub complete_lookups in AsyncLoop.pm:
> >
Giampaolo,
> Almost. One of the biggest problems I see is that one can't register a
> socket with AsyncLoop.pm. Thereby, when DNS lookups are finished, the whole
> loop stops regardless of outstanding non-DNS-based lookups.
>
> See sub complete_lookups in AsyncLoop.pm:
> my $nfound = $self->{m
> if I recall correctly, most of the code works fine without using
> DNS; it's just that most of the code currently *using* it works
> with DNS.
Almost. One of the biggest problems I see is that one can't register a
socket with AsyncLoop.pm. Thereby, when DNS lookups are finished, the whole
loop s
if I recall correctly, most of the code works fine without using
DNS; it's just that most of the code currently *using* it works
with DNS.
--j.
Giampaolo Tomassoni writes:
> Dears,
>
> my belief was that the Async support in SA was somehow of general-purpose
> type.
>
> I see instead that most
Dears,
my belief was that the Async support in SA was somehow of general-purpose
type.
I see instead that most code in AsyncLoop.pm do rely on code in
DnsResolver.pm.
Willing to handle non-DNS connection asynchronously in SA, how am I expected
to obtain it?
Thanks,
Giampaolo