Your code is incomplete, so I need to make a guess: Are you constructing 
$ua inside that action/sub/function? If so, is it going out of scope?

Try running with MOJO_USERAGENT_DEBUG=1 and see if you get any response 
from the server at all. Maybe you need to do

  $c->stash(my_ua => $ua);

On Thursday, August 7, 2014 12:37:03 PM UTC+2, Tim wrote:
>
> Hi,
>
> in the following setup I get an inactivity timeout after 5 min without 
> render. But I am expecting the timeout in $tx->error after 30 sec.
> How can I fix this?
>
> Thanks
>
> $c->inactivity_timeout(300);
>> $ua->connect_timeout(15)->inactivity_timeout(30);
>> $c->delay(
>>     sub {
>>         $ua->get($url, shift->delay);
>>     },
>>     sub {
>>         my ($delay, $tx) = @_;
>>         
>>         $c->render(json => {
>>             url => $tx->req->url->to_string,
>>             err => $tx->error,
>>         });
>>     }
>> );
>>
>  
>
>> [error] SSL connect attempt failed because of handshake problems
>> [debug] Inactivity timeout.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.

Reply via email to