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

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

Thread Previous | Thread Next
From:
Thomas Sibley via RT
Date:
October 6, 2015 05:45
Subject:
[perl #126224] IO::Socket::INET performance PROBLEMS!
Message ID:
rt-4.0.18-9593-1444110341-554.126224-15-0@perl.org
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.

Thomas

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=126224

Thread Previous | Thread Next


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