Re: Websockets now considered stable

2016-01-16 Thread Henrik Sarvell
ly 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 int

Re: Websockets now considered stable

2016-01-14 Thread Joe Bogner
arv...@gmail.com> wrote: > 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

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

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
I get time in the next few days. On Fri, Jun 26, 2015 at 3:30 PM, Henrik Sarvell hsarv...@gmail.com wrote: 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

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
) Where comes this limit from? POSIX IPC? PicoLisp IPC ? 2) I couldn't find the redis part in the code, maybe you can give me a hint where to look? Thanks, your work on websockets will definitely help me in in the future :-) - beneroth - Original Message - From: Henrik Sarvell

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
comes this limit from? POSIX IPC? PicoLisp IPC ? 2) I couldn't find the redis part in the code, maybe you can give me a hint where to look? Thanks, your work on websockets will definitely help me in in the future :-) - beneroth - Original Message - From: Henrik Sarvell

Re: Wiki: Websockets with PicoLisp, 404

2015-02-03 Thread Henrik Sarvell
Yes it can, I just haven't gotten around to updating the links. Here is Jose's new bitbucket identity: https://bitbucket.org/iromero91/ On Mon, Feb 2, 2015 at 4:33 PM, Jon Kleiser jon.klei...@fsat.no wrote: Hi, Just want to mention that the wiki page http://picolisp.com/wiki/?Websockets

Wiki: Websockets with PicoLisp, 404

2015-02-02 Thread Jon Kleiser
Hi, Just want to mention that the wiki page http://picolisp.com/wiki/?Websockets contains a link to web.l's websocket demo https://bitbucket.org/cyborgar/web.l/src/default/webtest.l?at=default that now gives a 404. Does anybody know if this demo code can be found elsewhere? /Jon-- UNSUBSCRIBE

Re: Doubts about the benefits of WebSockets

2014-07-15 Thread Henrik Sarvell
FWIW, in my case I fall back to polling every 10s in case websockets are not supported. However, as soon as IE9 penetration drops to an insignificant level I will stop with fallbacks. On Tue, Jul 15, 2014 at 7:11 PM, andr...@itship.ch wrote: Seems like we have a similar goal, Amaury! Cool

Re: Doubts about the benefits of WebSockets

2014-07-15 Thread andreas
FWIW, in my case I fall back to polling every 10s in case websockets are not supported. However, as soon as IE9 penetration drops to an insignificant level I will stop with fallbacks. Make a user agent statistic from your users, or try to obtain data about your target audience. Rumour

Re: Doubts about the benefits of WebSockets

2014-07-15 Thread Amaury Hernández Águila
with every browser. 2014-07-15 14:41 GMT-07:00 andr...@itship.ch: FWIW, in my case I fall back to polling every 10s in case websockets are not supported. However, as soon as IE9 penetration drops to an insignificant level I will stop with fallbacks. Make a user agent statistic from your

Doubts about the benefits of WebSockets

2014-07-14 Thread Alexander Burger
Hi Henrik, first of all, thank you for the article and the good work! However, I must say that I have doubts about the benefits of WebSockets in general. I cannot see that they are worth the overhead. They introduce a complicated machinery, which is not just a simple protocol extension

Re: Doubts about the benefits of WebSockets

2014-07-14 Thread Henrik Sarvell
Hi Alex, doesn't all that polling you're doing introduce a lot of unnecessary requests to the server. There can be up to 200 persons logged in at the same time at the site where I'm using websockets now, that would be 100 HTTP POSTS per second with full HTTP headers etc just to check

Re: Doubts about the benefits of WebSockets

2014-07-14 Thread Alexander Burger
On Mon, Jul 14, 2014 at 11:41:08AM +0200, Alexander Burger wrote: Not such a big problem. If I measure the described chat client, pinging every 2 seconds, I get 335 Bytes per second on the average. This amounts to 65 kB per second for 200 clients. Not a big problem today. Typically Oops, no!

Re: Doubts about the benefits of WebSockets

2014-07-14 Thread Alexander Burger
Hi Tomas, thing like the example from Alex, then the amount of work on the server seems rather small and avoiding sending HTTP headers seems like pointless micro-optimization. True. The posts caused by the +Auto button are POST /55319/29110032894590418~!jsForm?!chat?*Menu=+0*Tab=+1*ID=

Re: Doubts about the benefits of WebSockets

2014-07-14 Thread Amaury Hernández Águila
How about a browser videogame? Developing videogames in PicoLisp would be great. I think I'll start one tomorrow. El jul 14, 2014 3:21 AM, Alexander Burger a...@software-lab.de escribió: On Mon, Jul 14, 2014 at 12:02:10PM +0200, Alexander Burger wrote: with a size of 449 bytes. This is less

Re: Doubts about the benefits of WebSockets

2014-07-14 Thread Amaury Hernández Águila
Yeah that would be nice. So, isn't that a good reason to have websockets in PocoLisp? El jul 14, 2014 3:49 AM, Alexander Burger a...@software-lab.de escribió: Hi Amaury, On Mon, Jul 14, 2014 at 03:26:15AM -0700, Amaury Hernández Águila wrote: How about a browser videogame? Developing

Re: Doubts about the benefits of WebSockets

2014-07-14 Thread Alexander Burger
On Mon, Jul 14, 2014 at 03:52:42AM -0700, Amaury Hernández Águila wrote: Yeah that would be nice. So, isn't that a good reason to have websockets in PocoLisp? I would not say so. In a video game you have so much continuous communication going on (most notably the stream of image frames

Re: Doubts about the benefits of WebSockets

2014-07-14 Thread Henrik Sarvell
44KB / second is far from insignificant IMO, it works out to 0.35 Mbit/s if I'm not mistaken, we're paying 20 EUR per month per 1Mbit at our current co-location. Well worth spending a couple of days to avoid permanently. Plus, the goal is to have much much more people logged in in the future. On

Re: Doubts about the benefits of WebSockets

2014-07-14 Thread Tomas Hlavaty
Hi Henrik, 44KB / second is far from insignificant IMO, it works out to 0.35 Mbit/s if I'm not mistaken, we're paying 20 EUR per month per 1Mbit at our current co-location. Well worth spending a couple of days to avoid permanently. wow, 20 EUR per 1Mbit? 160 EUR per 1MByte? In 2014? I

Re: Doubts about the benefits of WebSockets

2014-07-14 Thread Henrik Sarvell
Yes but that's a residential subscription, before we moved to co-location we used fasthosts.co.uk (highly recommended if you don't do the kind of realtime stuff I do at work). With fasthosts you get unlimited speed and transfers but when you do what we do you quickly realize that it doesn't work

Re: Websockets

2014-07-13 Thread Henrik Sarvell
to httpGate and then pl-web? Or do you put httpGate behind Apache, and if so, why? Thanks :) The past few days I've been working on websockets and the write up is here: http://picolisp.com/wiki/?Websockets There are two settings that could be discussed right away on this mailing list: 1

Websockets

2014-07-12 Thread Henrik Sarvell
The past few days I've been working on websockets and the write up is here: http://picolisp.com/wiki/?Websockets There are two settings that could be discussed right away on this mailing list: 1.) The appropriateness of clearing out disconnected clients from the tag and id lists every 5 seconds

Re: Websockets

2012-05-29 Thread Henrik Sarvell
On further examination I have decided that websockets are overkill for my purpose, it seems that XHR v2 is a better fit for file uploads. Here is an example: https://github.com/Integralist/XHR2-Multiple-File-Upload--with-PHP- That code makes me believe that I will be able to accomplish

Re: Websockets

2012-05-29 Thread Alexander Burger
Hi Henrik, That code makes me believe that I will be able to accomplish a progressbar without having to change my current PL web server code at all. If it is only a progress bar what you are after, note that something similar is already existent in the standard PicoLisp release. It (ab)uses

Re: Websockets

2012-05-28 Thread Henrik Sarvell
Sarvell hsarv...@gmail.com wrote: Google couldn't show me any prior discussions of websockets and picolisp. Is it too early to start thinking about this maybe, seems like the spec/ref is still changing a little bit too fast/much atm? http://en.wikipedia.org/wiki/WebSocket http://tools.ietf.org

Re: Websockets

2012-05-27 Thread José Romero
On Sun, 27 May 2012 18:53:31 +0700 Henrik Sarvell hsarv...@gmail.com wrote: Google couldn't show me any prior discussions of websockets and picolisp. Is it too early to start thinking about this maybe, seems like the spec/ref is still changing a little bit too fast/much atm? http