beamable / BeamableProduct

The beamable product suite including com.beamable, com.beamable.server, microservice base image, portal, the installer, and build scripts
Other
5 stars 0 forks source link

[Issue/3320] Prevent WebSocketConnection burst of exceptions when connection fails #3352

Closed gabrielbeamable closed 3 months ago

gabrielbeamable commented 4 months ago

Ticket

resolves #3320

Brief Description

Our retry logic for the Unity SDK WebSocket was not delayed, but rather always immediately trying to connect again, which was leading to an infinite spam of errors in the console. Now we are waiting for some time before trying again to connect, in the following sequence of delays:

Checklist

Notes

When you are merging a feature branch into main, please squash merge and make sure the final commit contains any relevent JIRA ticket number. If you are merging from main to staging, or staging to production, please use a regular merge commit.

Does this introduce tech-debt? If so, have you added an entry to the Tech-debt document?

allister-beamable commented 3 months ago

looks like a compiler error in 2020

-----EndCompilerOutput---------------
- Finished script compilation in 29.863052 seconds
Packages/com.beamable/Runtime/Connection/WebSocketConnection.cs(164,21): error CS0117: 'Math' does not contain a definition for 'Clamp'

Oof! Who doesn't include Clamp in their math lib? Rough.