[PATCH 0 of 2] unbuffered proxying CPU hog (ticket #2418)

Maxim Dounin mdounin at mdounin.ru
Mon Nov 28 22:12:14 UTC 2022


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().

-- 
Maxim Dounin



More information about the nginx-devel mailing list