2 Star 0 Fork 0

alibaba/alibabacloud-dcdn-keyserver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tcp_module_compile_fixed.patch 2.53 KB
一键复制 编辑 原始数据 按行查看 历史
nandsky 提交于 2024-11-11 19:46 . init version
diff --git a/modules/ngx_tcp_ssl_module.c b/modules/ngx_tcp_ssl_module.c
index b809b49..6d75b8b 100644
--- a/modules/ngx_tcp_ssl_module.c
+++ b/modules/ngx_tcp_ssl_module.c
@@ -385,13 +385,15 @@ ngx_tcp_ssl_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child)
}
/* a temporary 512-bit RSA key is required for export versions of MSIE */
-#if defined(nginx_version) && nginx_version >= 1000006
- SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback);
-#else
- if (ngx_ssl_generate_rsa512_key(&conf->ssl) != NGX_OK) {
- return NGX_CONF_ERROR;
- }
-#endif
+/*
+ * #if defined(nginx_version) && nginx_version >= 1000006
+ * SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback);
+ * #else
+ * if (ngx_ssl_generate_rsa512_key(&conf->ssl) != NGX_OK) {
+ * return NGX_CONF_ERROR;
+ * }
+ * #endif
+ */
if (ngx_ssl_dhparam(cf, &conf->ssl, &conf->dhparam) != NGX_OK) {
return NGX_CONF_ERROR;
diff --git a/ngx_tcp_upstream_round_robin.c b/ngx_tcp_upstream_round_robin.c
index 1335cce..5e56c78 100644
--- a/ngx_tcp_upstream_round_robin.c
+++ b/ngx_tcp_upstream_round_robin.c
@@ -796,9 +796,9 @@ ngx_tcp_upstream_set_round_robin_peer_session(ngx_peer_connection_t *pc,
rc = ngx_ssl_set_session(pc->connection, ssl_session);
- ngx_log_debug2(NGX_LOG_DEBUG_TCP, pc->log, 0,
+ /* ngx_log_debug2(NGX_LOG_DEBUG_TCP, pc->log, 0,
"set session: %p:%d",
- ssl_session, ssl_session ? ssl_session->references : 0);
+ ssl_session, ssl_session ? ssl_session->references : 0); */
/* ngx_unlock_mutex(rrp->peers->mutex); */
@@ -821,8 +821,8 @@ ngx_tcp_upstream_save_round_robin_peer_session(ngx_peer_connection_t *pc,
return;
}
- ngx_log_debug2(NGX_LOG_DEBUG_TCP, pc->log, 0,
- "save session: %p:%d", ssl_session, ssl_session->references);
+ /* ngx_log_debug2(NGX_LOG_DEBUG_TCP, pc->log, 0,
+ "save session: %p:%d", ssl_session, ssl_session->references);*/
peer = &rrp->peers->peer[rrp->current];
@@ -836,9 +836,9 @@ ngx_tcp_upstream_save_round_robin_peer_session(ngx_peer_connection_t *pc,
if (old_ssl_session) {
- ngx_log_debug2(NGX_LOG_DEBUG_TCP, pc->log, 0,
+ /* ngx_log_debug2(NGX_LOG_DEBUG_TCP, pc->log, 0,
"old session: %p:%d",
- old_ssl_session, old_ssl_session->references);
+ old_ssl_session, old_ssl_session->references); */
/* TODO: may block */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_alibaba/alibabacloud-dcdn-keyserver.git
git@gitee.com:mirrors_alibaba/alibabacloud-dcdn-keyserver.git
mirrors_alibaba
alibabacloud-dcdn-keyserver
alibabacloud-dcdn-keyserver
main

搜索帮助