Mercurial > hg > nginx
comparison src/event/ngx_event.c @ 9017:c2f5d79cde64 quic
QUIC: separate UDP framework for QUIC.
Previously, QUIC used the existing UDP framework, which was created for UDP in
Stream. However the way QUIC connections are created and looked up is different
from the way UDP connections in Stream are created and looked up. Now these
two implementations are decoupled.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 20 Apr 2022 16:01:17 +0400 |
parents | 7c2adf237091 |
children | 91ad1abfb285 |
comparison
equal
deleted
inserted
replaced
9016:55b38514729b | 9017:c2f5d79cde64 |
---|---|
884 } | 884 } |
885 } | 885 } |
886 | 886 |
887 #else | 887 #else |
888 | 888 |
889 rev->handler = (c->type == SOCK_STREAM) ? ngx_event_accept | 889 if (c->type == SOCK_STREAM) { |
890 : ngx_event_recvmsg; | 890 rev->handler = ngx_event_accept; |
891 | |
892 #if (NGX_QUIC) | |
893 } else if (ls[i].quic) { | |
894 rev->handler = ngx_quic_recvmsg; | |
895 #endif | |
896 } else { | |
897 rev->handler = ngx_event_recvmsg; | |
898 } | |
891 | 899 |
892 #if (NGX_HAVE_REUSEPORT) | 900 #if (NGX_HAVE_REUSEPORT) |
893 | 901 |
894 if (ls[i].reuseport) { | 902 if (ls[i].reuseport) { |
895 if (ngx_add_event(rev, NGX_READ_EVENT, 0) == NGX_ERROR) { | 903 if (ngx_add_event(rev, NGX_READ_EVENT, 0) == NGX_ERROR) { |