Websocket tunnel broken with existing SSL session

Eiríkur Nilsson eirikur at nilsson.is
Fri Jan 17 17:23:13 UTC 2014


On Fri, Jan 17, 2014 at 5:01 PM, Maxim Dounin <mdounin at mdounin.ru> wrote:
>
>
> The problem is that read event was removed after ssl handshake,
> and never added back - so new data on client connection were not
> reported by the kernel.  The ngx_handle_read_event() call ensures
> that an appropriate event is added again.
>
> > Do you think this patch might get applied into the mainline?
>
> Yes, after some more testing and review.


Ahh, that makes sense. Silly me and my poor C reading skills. I didn't even
look at ngx_handle_read_event since I'm not used to seeing side-effects in
a conditional statement, but I guess that's a standard pattern in C to
handle errors. :)

I only wonder why I couldn't see anyone else experiencing this, with me
reproducing it on so many versions with a basic configuration. I guess this
only happens on Solaris?

Thank you so much for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140117/92828547/attachment.html>


More information about the nginx mailing list