On Tue, Feb 4, 2014 at 1:48 AM, Vincent HETRU <[email protected]>wrote:

> Ok my mistake was to declare $ua and $delay inside the recurring callback
> instead of the startup sub.


Also, you dropped the blocking 'sleep(10)'.  :)

I don't think $delay needs to be declared outside; and for $ua, you might
be able to use $self->ua

https://gist.github.com/s1037989/8817941


I still think it could be a good example to add in doc in the wiki.
>

We put quite a bit of time into the Mojo
wiki<https://github.com/kraih/mojo/wiki#wiki-performance>recently on
this subject.  Did you have a look at what's there?

-- 
*----------------------------------------------------------------*
*Keystone IT made the following notation*
*----------------------------------------------------------------*
*Email Confidentiality Notice: The information contained in this 
transmission is confidential, proprietary or privileged and may be subject 
to protection under the law, including the Health Insurance Portability and 
Accountability Act (HIPAA). *

*This message is for the sole use of the intended individual or entity to 
whom it is addressed. If you are not the intended recipient, you are 
notified that any use, distribution or copying of the message is strictly 
prohibited and may subject you to criminal or civil penalties. If you 
received this transmission in error, please contact the sender immediately 
at (314) 621-9500 and delete the material from all computers.*

-- 
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/groups/opt_out.

Reply via email to