1
chaim 2017-05-20 11:39:29 +08:00
可以看下 http2
|
2
hilyjiang 2017-05-20 12:01:27 +08:00
支持的,不然 HTTP 头里的 Connection: Keep-alive 就没有意义了。
可以参考 Nginx 配置实现中的介绍: http://nginx.org/en/docs/http/ngx_http_ssl_module.html To reduce the processor load it is recommended to * set the number of worker processes equal to the number of processors, * enable keep-alive connections, * enable the shared session cache, * disable the built-in session cache, * and possibly increase the session lifetime (by default, 5 minutes) 第 2 点就是建议你开启长连接,减少处理器开销。 |
3
changwei 2017-05-20 12:04:17 +08:00 via Android
我知道 websocket 可以用 ssl,wss,不知道算不算长链接
|
4
AnonymousAccout 2017-05-20 13:10:46 +08:00 via iPhone 5
题外话:请原谅我这位强迫症患者
HTTPS 能不能做长连接吗?✘ HTTPS 能做长连接吗?✔ HTTPS 能不能做长连接?✔ |
5
hilyjiang 2017-05-20 13:52:28 +08:00 via Android 5
|
7
AnonymousAccout 2017-05-20 14:18:36 +08:00 via iPhone
|
8
Williamp 2017-05-22 18:42:28 +08:00
You should apply HTTP/2 for your website for the faster connection. Read more from here https://www.v2ex.com/t/350927#reply13
|