Re: [Mojolicious] WebSocket Ping Frames

2019-03-19 Thread Joel Berger
I've worked on-and-off to make some helper mechanisms for pinging. What I 
have so far is available to look at 
here: https://github.com/jberger/Mojo-WebSocket-Pinger .

I think the problem with core functionality is making it generic but still 
useful. There are all kinds of things you might want it to do. Do you want 
a callback to trigger when the pong returns? How often should it ping? The 
patterns for doing so aren't completely obvious (which is why I haven't 
settled on anything and released that module to CPAN).

Anyway, I'd appreciate any input and maybe we can get something to CPAN 
sooner than later.

Cheers,
Joel

On Monday, March 18, 2019 at 4:28:55 PM UTC-5, Dan Book wrote:
>
> Perhaps you may want the websocket to time out when idle. I believe this 
> feature has been discussed in the past but I can't find an issue about it.
>
> -Dan
>
> On Mon, Mar 18, 2019 at 5:15 PM Veesh Goldman  
> wrote:
>
>> Why doesn't Mojo::UserAgent automatically send pings when connected to a 
>> websocket? Under what circumstances would I not want to ping to show the 
>> connection is alive?
>>
>> -- 
>> 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 mojolicious+unsubscr...@googlegroups.com.
>> To post to this group, send email to mojolicious@googlegroups.com.
>> Visit this group at https://groups.google.com/group/mojolicious.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.


Re: [Mojolicious] nginx-unit and Mojolicious

2019-03-19 Thread Alex Povolotsky
It was a real big patch. They did not complaint of Mojolicious 
implementation of PSGI, either they are very polite or everything is OK.

When running Mojolicious with unitd, set PLACK_ENV explicitly. I'll try to 
describe Mojolicious-unitd deployment soon.

вторник, 19 марта 2019 г., 0:41:13 UTC+3 пользователь Stefan Adams написал:
>
> Thanks for the report, Alex!  Do you happen to know what change was made 
> in nginx-unit that allowed for it to now be compatible with Mojolicious?
>
> On Mon, Mar 18, 2019 at 3:57 PM Alex Povolotsky  > wrote:
>
>> Hello
>>
>> I'm glad to tell that unit, starting from 1.8.0, works fine with 
>> Mojolicious. For 1.7.0 and 1.7.1, a patch is available.
>>
>> Yes, unit( http://unit.nginx.org) is THE app server made by the same 
>> group who made nginx.
>> --
>> Alex
>>
>> -- 
>> 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 mojolicious...@googlegroups.com .
>> To post to this group, send email to mojol...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/mojolicious.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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 mojolicious+unsubscr...@googlegroups.com.
To post to this group, send email to mojolicious@googlegroups.com.
Visit this group at https://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.