eceb1db8ec
Hard closing without shutdown is necessary, but we continued to poll and read on an fd that would be re-used to open eg. a ZIP file: [ kitbgsv_007_001 ] TRC #19: Incoming WebSocket data of 13522 bytes: 50 4B 03 04 14 00 00 08 00 00 29 9C 90 58 33 26 AC A8 2F 00 00 00 2F 00 00 00 08 00 00 00 6D 69 | PK........)..X3&../.../.......m" ... [ kitbgsv_007_001 ] ERR #19: An unfragmented message or the first fragment of a fragmented message must have the opcode different than 0| net/WebSocketHandler.hpp:452 which would then close the file unhelpfully. Not removing the socketHandler when cleaning up means that we trigger the ForKit's ServerWSHandler::onDisconnect which SigUtil::setTerminationFlag() causing all 2nd kit processes to expire on start. We also want to ensure that we update the thread-id of the last forkit process before we start removing sockets and checking thread-ids. We want to get rid of the parent process' sockets we inherited but don't need very cleanly post fork. Signed-off-by: Michael Meeks <michael.meeks@collabora.com> Change-Id: I82966f4421fc96df552fd50cf81c8b0bc92b9bbb |
||
---|---|---|
.. | ||
Buffer.hpp | ||
clientnb.cpp | ||
DelaySocket.cpp | ||
DelaySocket.hpp | ||
FakeSocket.cpp | ||
FakeSocket.hpp | ||
HttpHelper.cpp | ||
HttpHelper.hpp | ||
HttpRequest.cpp | ||
HttpRequest.hpp | ||
NetUtil.cpp | ||
NetUtil.hpp | ||
ServerSocket.hpp | ||
Socket.cpp | ||
Socket.hpp | ||
Ssl.cpp | ||
Ssl.hpp | ||
SslSocket.hpp | ||
WebSocketHandler.hpp |