HTTP keep-alive timeout

前端 未结 2 1041
生来不讨喜
生来不讨喜 2020-12-08 09:35

Can I specify the HTTP timeout or does the server impose a value? For example, if I do:

telnet my.server.net 80
Trying X.X.         


        
2条回答
  •  自闭症患者
    2020-12-08 10:11

    Yes, you can specify timeout but server has no obligation to use that value. If server is configured with a different timeout, it will return its own Keep-Alive header.

    The Keep-Alive header is a hop-by-hop header that provides information about a persistent connection. Both client and server are able to provide information independently. (Hypertext Transfer Protocol (HTTP) Keep-Alive Header)

提交回复
热议问题