Send TCP FIN from HttpContext if WebSocket FIN sent

This commit is contained in:
Alex Hultman
2020-06-26 06:08:41 +02:00
parent 162fa965ee
commit 2ff50630e9
3 changed files with 17 additions and 1 deletions
+2
View File
@@ -28,9 +28,11 @@
namespace uWS {
struct WebSocketData : AsyncSocketData<false>, WebSocketState<true> {
/* This guy has a lot of friends - why? */
template <bool, bool> friend struct WebSocketContext;
template <bool> friend struct WebSocketContextData;
template <bool, bool> friend struct WebSocket;
template <bool> friend struct HttpContext;
private:
std::string fragmentBuffer;
int controlTipLength = 0;