Re: [mongrel2] WebSockets and Mongrel2
- Jonathan Chang
- 2010-10-04 @ 22:54
Thanks Zed, let me know when you're done, and I'll give the websockets thing
On Tue, Oct 5, 2010 at 12:23 AM, Zed A. Shaw <email@example.com> wrote:
> On Mon, Oct 04, 2010 at 08:53:35PM +1100, Jonathan Chang wrote:
> > Hi,
> > I'm checking out Mongrel2 and I thought I'd have a go at making a
> > handler using m2r ruby gem so that I can learn a little bit more about
> > Mongrel2. I've noticed that when I receive a WebSocket request from
> > Mongrel2, I'm missing the body which contains 8 bytes of the random
> > Is this a bug in Mongrel2, or should I be doing this a different way?
> It's a combination. I'm currently fixing how we do IO to solve a few
> buffering problems so you might be hitting that. The code got into a
> bad state last week and now I'm correcting it.
> But, the websockets most likely can't be implemented using just a
> straight handler, although they'd probably work from handler->client
> just fine, just not the other direction. The real solution involves a
> bit of code I have to implement so that it's bidirectional.
> So, hang out a tick, I'll get it working soon.
> Zed A. Shaw
Silverpond Pty Ltd
mobile: +61 411 727 819
phone: +61 3 9008 5929
fax: +61 3 8621 8996
50 Market Street
Melbourne VIC 3000