示例10: ngx_stream_ssl_preread_handler ▲點讚 1▼ staticngx_int_t
} ngx_stream_ssl_preread_ctx_t;static ngx_int_t ngx_stream_ssl_preread_handler(ngx_stream_session_t *s); static ngx_int_t ngx_stream_ssl_preread_parse_record( ngx_stream_ssl_preread_ctx_t *ctx, u_char *pos, u_char *last); ...
The ngx_stream_ssl_preread_module module (1.11.5) allows extracting information from the ClientHello message without terminating SSL/TLS, for example, the server name requested through SNI or protocols advertised in ALPN. This module is not built by default, it should be enabled with the --wi...
Thengx_stream_ssl_preread_modulemodule (1.11.5) allows extracting information from theClientHellomessage without terminating SSL/TLS, for example, the server name requested throughSNIor protocols advertised inALPN. This module is not built by default, it should be enabled with the--with-stream_ss...
ssl_preread 嵌入式变量 所述ngx_stream_ssl_preread_module模块(1.11.5)允许提取所述信息的ClientHello而不终止SSL / TLS,例如,服务器名称通过请求的消息SNI。该模块不是默认生成的,它应该使用--with-stream_ssl_preread_module配置参数启用。 示例配置 ...
这段代码是用于定义Nginx模块ngx_stream_ssl_preread的流变量数组。该模块提供了一些与SSL预读相关的变量,可以在配置文件中使用。 具体解释如下: ssl_preread_protocol:表示一个SSL连接的协议版本(例如TLSv1.2、TLSv1.3)。 ngx_stream_ssl_preread_protocol_variable:指向处理获取ssl_preread_protocol变量值的回调函数...
nginx 来源:https://stackoverflow.com/questions/77046298/nginx-ngx-stream-ssl-preread-module-inet 关注 举报 1条答案按热度按时间 lstz6jyr1# resolver 8.8.8.8 ipv6=off; map $ssl_server_name $backend { ~^storage\.googleapis\.com$ backend1; default backend2; } upstream backend1 { server XXXX...
ngx_stream_set_module.c ngx_stream_split_clients_module.c ngx_stream_ssl_module.c ngx_stream_ssl_module.h ngx_stream_ssl_preread_module.c ngx_stream_upstream.c ngx_stream_upstream.h ngx_stream_upstream_hash_module.c ngx_stream_upstream_least_conn_module.c ngx_stream_upstream_random_module...
NGX_STREAM_SSL_PHASE, // 这个阶段可以预读部分数据,解析格式,如sni // = 4 NGX_STREAM_PREREAD_PHASE, // 应该加一个新的阶段,preread之后的处理 // NGX_STREAM_POST_READ_PHASE, // 相关函数:ngx_stream_init_phases // 内容产生阶段,只能有一个handler // = 5 NGX_STREAM_CONTENT_...
staticvoidngx_rtmp_ssl_handshake_handler(ngx_connection_t*c){ngx_rtmp_session_t*s;ngx_event_t*rev;ngx_int_trc; s = c->data;if(c->ssl->handshaked) { ngx_rtmp_handshake(s);return; }if(c->read->timedout) { ngx_log_error(NGX_LOG_INFO, c->log, NGX_ETIMEDOUT,"SSL handshake tim...