]> git.kaiwu.me - nginx.git/commit
SSL: improved ngx_ssl_recv_chain() to stop if c->read->ready is 0.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 17 Oct 2019 13:02:13 +0000 (16:02 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 17 Oct 2019 13:02:13 +0000 (16:02 +0300)
commitd2ea226229f4039953af48bb7e0599c076f01c1f
treeb85faad04fdd64e08307badcb77f1622e2900fd0
parent60609f2372f62628191bf01ed856a46cd488921b
SSL: improved ngx_ssl_recv_chain() to stop if c->read->ready is 0.

As long as there are data to read in the socket, yet the amount of data
is less than total size of the buffers in the chain, this saves one
unneeded read() syscall.  Before this change, reading only stopped if
ngx_ssl_recv() returned no data, that is, two read() syscalls in a row
returned EAGAIN.
src/event/ngx_event_openssl.c