diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2019-10-17 16:02:13 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2019-10-17 16:02:13 +0300 |
commit | d2ea226229f4039953af48bb7e0599c076f01c1f (patch) | |
tree | b85faad04fdd64e08307badcb77f1622e2900fd0 /auto | |
parent | 60609f2372f62628191bf01ed856a46cd488921b (diff) | |
download | nginx-d2ea226229f4039953af48bb7e0599c076f01c1f.tar.gz |
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.
Diffstat (limited to 'auto')
0 files changed, 0 insertions, 0 deletions