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'};
}