Mercurial > hg > nginx
comparison src/event/ngx_event.c @ 9064:35e27117b593 quic
QUIC: automatically add and never delete stream events.
Previously, stream events were added and deleted by ngx_handle_read_event() and
ngx_handle_write_event() in a way similar to level-triggered events. However,
QUIC stream events are effectively edge-triggered and can stay active all time.
Moreover, the events are now active since the moment a stream is created.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 10 Jan 2023 14:05:18 +0400 |
parents | 91ad1abfb285 |
children |
comparison
equal
deleted
inserted
replaced
9063:e3760b9b7c8e | 9064:35e27117b593 |
---|---|
272 ngx_connection_t *c; | 272 ngx_connection_t *c; |
273 | 273 |
274 c = rev->data; | 274 c = rev->data; |
275 | 275 |
276 if (c->quic) { | 276 if (c->quic) { |
277 return ngx_quic_handle_read_event(rev, flags); | 277 return NGX_OK; |
278 } | 278 } |
279 | 279 |
280 #endif | 280 #endif |
281 | 281 |
282 if (ngx_event_flags & NGX_USE_CLEAR_EVENT) { | 282 if (ngx_event_flags & NGX_USE_CLEAR_EVENT) { |
351 | 351 |
352 c = wev->data; | 352 c = wev->data; |
353 | 353 |
354 #if (NGX_QUIC) | 354 #if (NGX_QUIC) |
355 if (c->quic) { | 355 if (c->quic) { |
356 return ngx_quic_handle_write_event(wev, lowat); | 356 return NGX_OK; |
357 } | 357 } |
358 #endif | 358 #endif |
359 | 359 |
360 if (lowat) { | 360 if (lowat) { |
361 if (ngx_send_lowat(c, lowat) == NGX_ERROR) { | 361 if (ngx_send_lowat(c, lowat) == NGX_ERROR) { |