Skip Menu |

This queue is for tickets about the Net-HTTPServer CPAN distribution.

Report information
The Basics
Id: 45430
Status: new
Priority: 0/
Queue: Net-HTTPServer

Owner: Nobody in particular
Requestors: dave [...]

Bug Information
Severity: Important
Broken in: 1.1.1
Fixed in: (no value)

Subject: Failed name lookups slow server
Download (untitled) / with headers
text/plain 851b
When Net-HTTPServer-1.1.1 is unable to determine the name of the client (via gethostbyaddr), service of each request is delayed by several seconds. Pages with multiple sub-requests are particularly affected. Perl 5.10.0 under both Windows (Vista Ultimate SP1 x32) and Linux (Ubuntu 8.10). I do not have a patch to *fix* the "bug" -- it would be nice to cache results and I'm not sure how failures should be represented -- so I'm reluctant to submit what I've done as a patch, but I have found the line where the call is made and replaced it with a static string: 2034c2034 < my $hostname = gethostbyaddr($iaddr, AF_INET); --- Show quoted text
> my $hostname = "skipped";#gethostbyaddr($iaddr, AF_INET);
(That line number is without the binmode patch. Look for the line a little below a comment block that includes "# Profile the client".)

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to