comparison src/event/ngx_event.c @ 8791:c31d95fdaf65 quic

QUIC: removed ngx_send_lowat() check for QUIC connections. After 9ae239d2547d, ngx_quic_handle_write_event() no longer runs into ngx_send_lowat() for QUIC connections, so the check became excessive. It is assumed that external modules operating with SO_SNDLOWAT (I'm not aware of any) should do this check on their own.
author Sergey Kandaurov <pluknet@nginx.com>
date Thu, 13 Jan 2022 15:57:21 +0300
parents 9ae239d2547d
children 7c2adf237091
comparison
equal deleted inserted replaced
8790:ad67fcc30567 8791:c31d95fdaf65
933 ngx_int_t 933 ngx_int_t
934 ngx_send_lowat(ngx_connection_t *c, size_t lowat) 934 ngx_send_lowat(ngx_connection_t *c, size_t lowat)
935 { 935 {
936 int sndlowat; 936 int sndlowat;
937 937
938 #if (NGX_QUIC)
939 if (c->quic) {
940 return NGX_OK;
941 }
942 #endif
943
944 #if (NGX_HAVE_LOWAT_EVENT) 938 #if (NGX_HAVE_LOWAT_EVENT)
945 939
946 if (ngx_event_flags & NGX_USE_KQUEUE_EVENT) { 940 if (ngx_event_flags & NGX_USE_KQUEUE_EVENT) {
947 c->write->available = lowat; 941 c->write->available = lowat;
948 return NGX_OK; 942 return NGX_OK;