Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
TheWebSocketprotocol requirements described in rfc6455 section 7.1.1 outline an operation described as [@https://tools.ietf.org/html/rfc6455#section-7.1.1 ['Close the WebSocket Connection]]. This operation cleanly discards bytes remaining at receiving endpoints and also closes the underlying TCP/IP connection. Orderly shutdowns are always preferred; for协议规范(rfc6455 第 7.1.1 节)概述了一个称为“关闭 WebSocket 连接”的操作。该操作会清理接收端剩余字节,并同时关闭底层的 TCP/IP 连接。通常优先采用有序关闭方式;对于 TLSor或 SSLstreams, a protocol-level shutdown is desired. This presents a small issue for the流,则需要进行协议级的关闭。这给 [link beast.ref.boost__beast__websocket__stream`stream`]implementation: the stream's `NextLayer` template type requires only __的实现带来一个小问题:流的 NextLayer 模板类型仅要求满足 SyncStream__ or __或 AsyncStream__, but those concepts do not support the operations to shut down the connection.,但这些概念并不支持关闭连接的操作。