回答
收藏
分享
举报
limit_rate 限速https时,非常慢,只有60k左右
提问于2021-07-15 09:46

浏览 3.6k

同样的限速配置  limit_rate 500k;  

http访问时,速度正常,平均500K左右

https访问时,速度非常慢,只有60k左右

求助!

已修改于2023-03-15 02:14



写下您的回答
发表回答
全部回答(1)

按点赞数排序

按时间排序

可以尝试优化https的配置:

ssl_session_timeout 1d;
ssl_session_cache shared:SSL:50m;
ssl_session_tickets off;

赞同

0

回复举报

回答于2021-08-24 16:10



回复friparia
回复
壹捌少年回复了

配置上去,重启nginx,试过了,没作用,还是维持在60K作用, http正常

0

回复举报

回答于2021-11-18 03:38



回复壹捌少年
回复
提问者
壹捌少年
这家伙很懒还未留下介绍~
0
文章
1
问答
0
粉丝
相关问答

upstream中的2个server IP,当其中一个server异常后的重试。

点赞 0
浏览 7.1k

第1种。参考官方文档:

“When buffering is enabled, nginx receives a response from the proxied server as soon as possible, saving it into the buffers set by the proxy_buffer_size and proxy_buffers directives. If the whole response does not fit into memory, a part of it can be saved to a temporary file on the disk. Writing to temporary files is controlled by the proxy_max_temp_file_size and proxy_temp_file_write_size directives.

When buffering is disabled, the response is passed to a client synchronously, immediately as it is received. nginx will not try to read the whole response from the proxied server. The maximum size of the data that nginx can receive from the server at a time is set by the proxy_buffer_size directive.”

点赞 0
浏览 3.3k