简体   繁体   English

有关保持活动的HTTP标头的一些信息

[英]some information on keep-alive http header

The server that my website is located on it, send these two http headers: 我的网站所在的服务器上,发送以下两个HTTP标头:

Connection:Keep-Alive
Keep-Alive:timeout=5

As you can see, there is no max in Keep-Alive header. 如您所见, Keep-Alive标头中没有max isn't it going to cause any problem? 这不会造成任何问题吗? what is the default value for max? max的默认值是多少?
And another question, I don't have access to apache config, how can I increase timeout ? 还有一个问题,我无权访问apache config,如何增加timeout
Once I contacted the host manager, he said it's too odd and strange to manipulate the apache confing! 有一次,我联系了主机管理,他说这太奇怪陌生操纵阿帕奇confing! REALLY IS IT? 真的是吗? any idea? 任何想法?

Thanks everybody. 谢谢大家。

Read Keep-alive header clarification . 阅读Keep-alive标头说明 It is up to the server when it closes the connection anyway, the timeout and max parameters are an indication, not a hard line. 无论如何,这取决于服务器是否关闭连接, timeoutmax参数是指示,而不是硬线。 If the server is busy, it can close connections arbitrarily. 如果服务器繁忙,则可以任意关闭连接。

To modify the server settings locally, see Using keep-alive feature in .htaccess . 要在本地修改服务器设置,请参阅使用.htaccess中的保持活动功能 You can do so in .htaccess if the host allows you to. 如果主机允许,您可以在.htaccess这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM