develooper Front page | perl.perl5.porters | Postings from December 2015

Re: [perl #126224] IO::Socket::INET performance PROBLEMS!

Thread Previous
From:
Dave Mitchell
Date:
December 3, 2015 11:46
Subject:
Re: [perl #126224] IO::Socket::INET performance PROBLEMS!
Message ID:
20151203114603.GA2958@iabyn.com
On Mon, Oct 05, 2015 at 10:45:42PM -0700, Thomas Sibley via RT wrote:
> On Thu Oct 01 00:12:26 2015, Mark@Overmeer.net wrote:
> > * Konstantin Kokin (konstantin.kokin@gmail.com) [151001 03:24]:
> > > I'm working with networking on BSD and Linux more than 15 year and I
> > > really
> > > do understand the meaning of DNS
> > 
> > LeoNerd is experienced as well.
> > I have seen cases where you really do not expect DNS to come into
> > play, but it still did.  To get a reverse name-lookup, for instance.  Only
> > if you log your DNS server, you may find out.
> 
> Indeed, every call to $c->get_request() calls $d->url, which calls gethostbyaddr() in
> the case of your usage of LocalAddr:
> 
>    https://github.com/gisle/http-daemon/blob/master/lib/HTTP/Daemon.pm#L51
> 
> strace is also a good tool for finding DNS queries where you don't expect it.

Given that the 5000ms delays are almost certainly due to to HTTP::Daemon
doing a DNS reverse lookup, I'm going to mark this ticket as rejected.


-- 
If life gives you lemons, you'll probably develop a citric acid allergy.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About