[fpc-pascal] Websocket

Ondrej Pokorny lazarus at kluug.net
Tue Sep 8 08:06:48 CEST 2026


I've observed a similar interruption issue in the FPC HTTP client on 
Windows.

After a server-timeout the client stream is corrupted. I observed it 
during server debugging.

If I am not mistaken, the steps-to-reproduce are:
The client sends a request -> the server takes too long to respond (e.g. 
because I debug the request on the server) -> client shuts down with 
timeout -> server finishes the request -> client sends a new request -> 
the client reads wrong data (maybe old data are on the socket, I don't 
know yet).

I have wanted to debug and fix the issue for a long time but haven't 
found the time to do so. I still have to check the 
exact steps-to-reproduce... Hopefully I'll do it soon :)

Ondrej



More information about the fpc-pascal mailing list