<div dir="ltr"><div><div>Hi Sven, the patch now runs clean on both Linux and Windows.</div><div><br></div><div>It contains:</div><br>packages/fcl-web/src/websocket/fpwebsocket.pp<br>packages/fcl-web/src/websocket/fpwebsocketclient.pp<br>packages/fcl-web/src/websocket/README.md<br>packages/fcl-web/tests/wsshutdowntest.pas<br><br></div><div>Run tests also with parameters:</div><div><br></div><div><span>./wsshutdowntest </span></div><div><span>./wsshutdowntest </span><span class="gmail-ͼn">--pump-first</span><span> </span></div><div><span>./wsshutdowntest </span><span class="gmail-ͼn">--interrupt-race</span></div><div><span class="gmail-ͼn"><br></span></div><div><span class="gmail-ͼn">Notice also the note in the readme that server side could benefit from a similar update.</span></div><div><span class="gmail-ͼn"></span></div><div><span class="gmail-ͼn"><br></span></div><div><span class="gmail-ͼn"></span></div><div><span class="gmail-ͼn">Roger</span></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, Sep 12, 2026 at 11:55 PM Sven Harazim via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Very good, great info. I would then convert the tests into unit tests and propose them to FPC for integration.<div dir="auto"><br></div><div dir="auto">Sven</div></div><div class="gmail_extra"><br><div class="gmail_quote">Am 12.09.2026 23:09 schrieb Roger Olsson via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a>>:<br type="attribution"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Sven, great job testing. I have a new patch solving all 36 failures. To do this cleanly, it made sense to redesign the websocket code somewhat. The goal was also to keep backwards compatibility and not break existing user code. Tested on Linux, will send the patch when it is verified also on windows.</div><div><br></div><div>Roger</div><div><br></div><div><br></div><br><div><div dir="ltr">On Sat, Sep 12, 2026 at 11:40 AM Sven Harazim via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a>> wrote:<br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Roger,<br>
<br>
Sorry for this large reply.<br>
<br>
In short:<br>
<br>
We need to decide whether the current patch suffices <br>
for now or if a long-term overhaul of the <br>
WebSocket implementation makes sense.<br><br>
</blockquote></div></div>
</blockquote></div><br></div>_______________________________________________<br>
fpc-pascal maillist  -  <a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank">fpc-pascal@lists.freepascal.org</a><br>
<a href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal</a><br>
</blockquote></div>