[PATCH 0 of 2] unbuffered proxying CPU hog (ticket #2418)
mdounin at mdounin.ru
Thu Dec 1 01:41:20 UTC 2022
On Wed, Nov 30, 2022 at 07:29:35PM +0400, Sergey Kandaurov wrote:
> > On 29 Nov 2022, at 02:12, Maxim Dounin <mdounin at mdounin.ru> wrote:
> > Hello!
> > The following patch fixes CPU hog observed with unbuffered SSL proxying
> > after SSL errors (ticket #2418). Fix is to always clear c->read->ready
> > flag when returning errors from ngx_ssl_recv().
> > An additional patch cleans up some win32-specific edge cases (not expected
> > to appear in practice though) when c->read->ready is not cleared when
> > errors or EOFs are returned from ngx_wsarecv() and ngx_wsarecv_chain().
> Both patches look good to me.
Pushed to http://mdounin.ru/hg/nginx, thanks.
More information about the nginx-devel