koraktor / steam-condenser

A multi-language library for querying the Steam Community, Source, GoldSrc servers and Steam master servers
https://koraktor.de/steam-condenser
Other
356 stars 67 forks source link

[php] Allow Setting GameServer.php handleResponseForRequest() repeatOnFailure retries number #315

Closed hayden-t closed 6 years ago

hayden-t commented 6 years ago

So you have protected function handleResponseForRequest($requestType, $repeatOnFailure = true) {

which does a repeat once, but quite often i dont get a response with 2 attempts. really this should allow you to set how many times it will retry before giving up.

koraktor commented 6 years ago

The reasoning behind the code in place is – and that’s documented for that method – that the server might answer with a challenge reply if e.g. the client asks for the player list and no challenge number was provided. It’s not intended for error handling of e.g. timeouts or other network issues.

hayden-t commented 6 years ago

Ok, i get it, no problem then.