libreoffice-online/kit
Michael Meeks eceb1db8ec bgsave: remove closed sockets from Kit's SocketPoll.
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
2024-04-17 08:35:30 +01:00
..
ChildSession.cpp bgsave: rename parameter to background, and add setting. 2024-04-16 16:43:52 +01:00
ChildSession.hpp bgsave: initial implementation (gated on COOL_BGSAVE=1) 2024-04-05 17:34:43 +01:00
Delta.hpp wsd: reduce directives for unused variable supression 2024-03-09 12:37:19 -05:00
DeltaSimd.c fix build on !ENABLE_SIMD branch 2024-03-10 20:06:53 +00:00
DeltaSimd.h
DummyLibreOfficeKit.cpp Revert "Changes for handling readonly mode click events:" 2024-03-06 14:03:02 +01:00
DummyLibreOfficeKit.hpp
forkit-main.cpp extract some functions to extra files for in process mode 2023-12-18 10:34:10 +00:00
ForKit.cpp bgsave: Add SLEEPBACKGROUNDFORDEBUGGER environment variable. 2024-04-17 08:35:30 +01:00
Kit.cpp bgsave: remove closed sockets from Kit's SocketPoll. 2024-04-17 08:35:30 +01:00
Kit.hpp bgsave: initial implementation (gated on COOL_BGSAVE=1) 2024-04-05 17:34:43 +01:00
KitHelper.hpp calc: Receive the sheet protected status 2024-02-14 14:05:56 +00:00
KitWebSocket.cpp bgsave: add unit testing hooks for after bgsave fork & pre exit. 2024-04-16 16:43:52 +01:00
KitWebSocket.hpp cid#360688 COPY_INSTEAD_OF_MOVE 2024-04-16 15:19:35 +02:00
SetupKitEnvironment.hpp reduce uses of MOBILEAPP on some files 2024-03-20 09:13:00 +01:00
StateRecorder.hpp nearly pure re-factor: split out code into its own modules. 2024-03-06 20:56:55 -05:00
TestStubs.cpp fix linking error for clang 17 2024-01-19 08:56:13 +01:00
Watermark.hpp