[SOLVED] connection lost lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- ADMGNS · 2025-06-22 04:07 hello a mini app/server for directory listing implementation.. it runs on linux and windows in reqular ways, but, on mac (catalina), it loses connection after one or two reqs/responsse or after a while.. i,ve no experince on mac systems. is there a tricky thing? thanks ---------------------------------------------------------------------- olatov · 2025-06-22 08:49 Hi, I've tried your app (built with trunk FPC) under Sequoia, and it seems to work fine. One thing I'd suggest though is to enable the threading mode (by adding Application.Threaded := True; before Application.Run;), which would 1) allow serving multiple clients simulatenously; 2) prevent a faulty client from blocking the whole sever (e.g. a client which opens a connection but never sends proper request contents - makes the server wait on its only thread, refusing to accept any other connections) - which indeed may look like the server stopped working completely. ---------------------------------------------------------------------- ADMGNS · 2025-06-22 20:58 sounds good.  but, on my old mac, the connection still drops.. maybe, localized problem.. anyway thanks