Author Topic: Setting a Timer and Server Communication  (Read 117 times)


  • Full Member
  • ***
  • Posts: 113
Setting a Timer and Server Communication
« on: January 26, 2021, 04:37:42 pm »
BUT if the input is somehow Wrong, there wont be any result. Because of this i wanted to make a Timer and if i didn't Recieve an Answer after 30 Seconds, it failed(Error Message or Something like that).

I would suggest that a better, as in less fragile, approach would be to return an error rather than nothing and then rely on a timeout which could be impacted by network connectivity issues. A 30 second timeout could also lead to a DOS attack on the server.
« Last Edit: January 27, 2021, 12:17:39 am by trev »
Lazarus: 2.0.6 x86_64-win64-win32/win64
FPC-Version: 3.0.4
Compiler Version: 3.2.0


TinyPortal © 2005-2018