I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-08-27 13:14:23-07 by sasare
Long Time Delay on get_request
Hi All, I am using HTTP::Proxy for a project. It uses HTTP::Daemon's get_request. It takes about 7-8 seconds to read a request from a client which is on the same pc as the HTTP::Daemon. Can someone help? Thanks.
Direct Responses: 8680 | Write a response
Posted on 2008-08-27 15:08:54-07 by sasare in response to 8679
Re: Long Time Delay on get_request
Hi, it is this line in HTTP::Daemon:
$uri = $HTTP::URI_CLASS->new($uri, $self->daemon->url);
that causes the long time delay. What does it do? Where is it defined? Can it be done faster? Any help will be appreciated. sasare.
Direct Responses: 8683 | Write a response
Posted on 2008-08-28 07:33:24-07 by sasare in response to 8680
Re: Long Time Delay on get_request
I traced the delay to a sub in HTTP::Daemon. It returns the url of the proxy. For now, I have hard coded the address and it's working ok. I suspect it could be a DNS issue. I will look into this later (never?).
sub daemon { my $self = shift; ${*$self}{'httpd_daemon'}; }
Thanks, sasare
Direct Responses: Write a response