Recent

Author Topic: connection lost  (Read 482 times)

ADMGNS

  • New Member
  • *
  • Posts: 46
  • keep it simple and smart
connection lost
« on: June 22, 2025, 06:07:54 am »
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


Nimbus

  • Jr. Member
  • **
  • Posts: 62
Re: connection lost
« Reply #1 on: June 22, 2025, 10:49:26 am »
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

  • New Member
  • *
  • Posts: 46
  • keep it simple and smart
Re: connection lost
« Reply #2 on: June 22, 2025, 10:58:19 pm »
sounds good. 

but, on my old mac, the connection still drops.. maybe, localized problem..

anyway

thanks

 

TinyPortal © 2005-2018