Re: [Mojolicious] Uploading "large" files with Mojolicious::Lite not working as expected

2018-02-06 Thread Sebastian Riedel
> When a file with size under 16MB is uploaded, everything works fine, but > when a file larger then 16MB is uploaded (which is the default max) I am > expecting to see "File is too big." message, instead I am getting connection > reset. That's not possible, a request has to be fully received to

Re: [Mojolicious] Mojo::Base get all attributes names

2018-02-06 Thread Dan Book
If you want the introspection you're going to be expanding objects to Moose anyway so you might want to start there (though if you rarely do the introspection, using Moo for everything else may be a benefit). As for Mouse I would not recommend its usage to be combined with any other modules.

[Mojolicious] Re: Excessive stop/start hypnotoad workers

2018-02-06 Thread Илья Рассадин
Looks like this is behaviour of a gracefull_timeout attribute of Mojo::Server::Hypnotoad >From the docs https://metacpan.org/pod/Mojo::Server::Hypnotoad#graceful_timeout Maximum amount of time in seconds stopping a worker gracefully may take before being forced, defaults to the value of

Re: [Mojolicious] Mojo::Base get all attributes names

2018-02-06 Thread Илья Рассадин
To be fare, Mouse can do it as well. And Moo too (but not with support of Moose Meta Object Protocol). понедельник, 5 февраля 2018 г., 21:13:19 UTC+3 пользователь Charlie Brady написал: > > > On Mon, 5 Feb 2018, Dan Book wrote: > > > Introspection capabilities are a feature of Moose. > >

[Mojolicious] Re: Validation

2018-02-06 Thread Mikhail
Stefan Adams: > > How can I set up a validation to require one parameter of a group? For > example, I need to require City and State, or Zip. > Seems my $validation = $c->validation; > $validation->required('City')->in('Pyongyang'); > $validation->required('State')->in('North Korea'); >