comparison src/event/quic/ngx_event_quic.h @ 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 b0c2234aaa9f
children b9230e37b8a1
comparison
equal deleted inserted replaced
9063:e3760b9b7c8e 9064:35e27117b593
121 void ngx_quic_shutdown_connection(ngx_connection_t *c, ngx_uint_t err, 121 void ngx_quic_shutdown_connection(ngx_connection_t *c, ngx_uint_t err,
122 const char *reason); 122 const char *reason);
123 ngx_int_t ngx_quic_reset_stream(ngx_connection_t *c, ngx_uint_t err); 123 ngx_int_t ngx_quic_reset_stream(ngx_connection_t *c, ngx_uint_t err);
124 ngx_int_t ngx_quic_shutdown_stream(ngx_connection_t *c, int how); 124 ngx_int_t ngx_quic_shutdown_stream(ngx_connection_t *c, int how);
125 void ngx_quic_cancelable_stream(ngx_connection_t *c); 125 void ngx_quic_cancelable_stream(ngx_connection_t *c);
126 ngx_int_t ngx_quic_handle_read_event(ngx_event_t *rev, ngx_uint_t flags);
127 ngx_int_t ngx_quic_handle_write_event(ngx_event_t *wev, size_t lowat);
128 ngx_int_t ngx_quic_get_packet_dcid(ngx_log_t *log, u_char *data, size_t len, 126 ngx_int_t ngx_quic_get_packet_dcid(ngx_log_t *log, u_char *data, size_t len,
129 ngx_str_t *dcid); 127 ngx_str_t *dcid);
130 ngx_int_t ngx_quic_derive_key(ngx_log_t *log, const char *label, 128 ngx_int_t ngx_quic_derive_key(ngx_log_t *log, const char *label,
131 ngx_str_t *secret, ngx_str_t *salt, u_char *out, size_t len); 129 ngx_str_t *secret, ngx_str_t *salt, u_char *out, size_t len);
132 130