Re: Websockets now considered stable

2016-01-16 Thread Henrik Sarvell
Hi Joe, thanks for the pointer, had totally forgotten about that demo app. I've removed the call from the demo, the wsServer logic has been removed completely since it's now Redis that is responsible for routing messages through the pub / sub handling. I've also updated the readme with the fact

Re: Websockets now considered stable

2016-01-14 Thread Joe Bogner
Hi Henrik, Thanks for sharing. I get the following when running the ws-demo: ./pil pl-web/ws-demo/main.l -go .. !? (wsServer) wsServer -- Undefined I can't find the definition of wsServer anywhere. Is it missing from the repo? Thanks, Joe On Mon, Jan 4, 2016 at 4:27 PM, Henrik Sarvell

Re: Websockets now considered stable

2016-01-04 Thread Henrik Sarvell
Update: The socketserver is now completely reliant on Redis, using Redis' pub / sub functionality: http://redis.io/topics/pubsub The reason for this is that I was using the websocket server to handle all websockets functionality for the site I'm being paid to work on and it started running into

Re: Websockets now considered stable

2015-07-02 Thread Rick Hanson
Hi Rick, seems like a fix would be a check there: if sessions dir doesn't exist (and Redis isn't used to store the session) create it and move on instead of breaking down in tears. Hi Henrik! Yes, I agree. BTW, thanks. I forgot to thank you before for sharing this! -- UNSUBSCRIBE:

Re: Websockets now considered stable

2015-07-02 Thread Henrik Sarvell
Hi Rick, seems like a fix would be a check there: if sessions dir doesn't exist (and Redis isn't used to store the session) create it and move on instead of breaking down in tears. On Sun, Jun 28, 2015 at 10:47 PM, Rick Hanson cryptor...@gmail.com wrote: I downloaded pl-web and ext and ran the

Re: Websockets now considered stable

2015-06-28 Thread Rick Hanson
What gives?! This stuff is broken!!! $ git clone https://bitbucket.org/hsarvell/pl-web Cloning into 'pl-web'... fatal: repository 'https://bitbucket.org/hsarvell/pl-web/' not found Just yanking your chain. I know this is a mercurial repo. :) Thanks, man. Looks good. I'll study the code when

Re: Websockets now considered stable

2015-06-27 Thread Alexander Burger
Hi Henrik, hi Andreas, Question: To work around the inter-process limit of 4096 byte long messages the router now supports storing the messages in Redis 1) Where comes this limit from? POSIX IPC? PicoLisp IPC ? 1) As far as I remember from a discussion with Alex it's a hard limit

Re: Websockets now considered stable

2015-06-27 Thread Alexander Burger
On Fri, Jun 26, 2015 at 09:30:58PM +0200, Henrik Sarvell wrote: I was also including dbg.l (it was causing hung processes at 100% CPU), it's basically been deprecated or something, I'll leave it up to him to elaborate. IIRC, the problem was not so much including dbg.l, but starting the

RE: Websockets now considered stable

2015-06-26 Thread andreas
Hi Henrik Awesome! That's really cool, thank you for your effort and for sharing the code :-) 20k message with nearly zero server load sounds very impressive. Question: To work around the inter-process limit of 4096 byte long messages the router now supports storing the messages in Redis 1)

Websockets now considered stable

2015-06-26 Thread Henrik Sarvell
Hi all, after over a month without any of the prior issues I now consider the websockets part of pl-web stable: https://bitbucket.org/hsarvell/pl-web Gone are the days of 100% CPU usage and zombie processes. With Alex's help the main web server is now more stable (he made me throw away a few

Re: Websockets now considered stable

2015-06-26 Thread Henrik Sarvell
Hi Andreas. 1) As far as I remember from a discussion with Alex it's a hard limit (OS related). 2) Line 369 - 372 here: https://bitbucket.org/hsarvell/pl-web/src/c445ca3861159d0b28ea779a183572c91b7b8458/pl-web.l?at=default On Fri, Jun 26, 2015 at 9:50 PM, andr...@itship.ch wrote: Hi Henrik