Recent

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

Weitentaaal

  • Hero Member
  • *****
  • Posts: 516
  • Weitental is a very beautiful garbage depot.
Setting a Timer and Server Communication
« on: January 26, 2021, 04:37:42 pm »
Quote
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 »

 

TinyPortal © 2005-2018