]> git.kaiwu.me - nginx.git/commitdiff
QUIC: removed ngx_send_lowat() check for QUIC connections.
authorSergey Kandaurov <pluknet@nginx.com>
Thu, 13 Jan 2022 12:57:21 +0000 (15:57 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Thu, 13 Jan 2022 12:57:21 +0000 (15:57 +0300)
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.

src/event/ngx_event.c

index aa47ccf9f694dd37a3ad3147ea03e66ba8cbd85b..5b246c015ab4ce12f6e875deca738f807152ec40 100644 (file)
@@ -935,12 +935,6 @@ ngx_send_lowat(ngx_connection_t *c, size_t lowat)
 {
     int  sndlowat;
 
-#if (NGX_QUIC)
-    if (c->quic) {
-        return NGX_OK;
-    }
-#endif
-
 #if (NGX_HAVE_LOWAT_EVENT)
 
     if (ngx_event_flags & NGX_USE_KQUEUE_EVENT) {