pokemon-showdown/server
HoeenHero e092caf2d2
Ladders: Delete rating cache if no response. (#6132)
If the remote ladder's update rating method dosen't receive
a response from the login server, it will not change the user's
mmrCache for the format, resulting in future ladder matches using
an outdated ELO until the server receives a response at the end of
a future match.

This is the cause of issues such as users with 1400 ELO being matched
with users with 1000 ELO with a 10 second wait time in current gen OU.

Ensuring the rating is up to date was discussed, but for cases such as
a user searching for a new match before a response is received (or an
error occurs) we decided to accept the mmrCache being at most 1 game
behind, which this change.
2019-12-01 21:47:52 -05:00
..
chat-commands
chat-plugins
static
tournaments
chat-formatter.ts
chat.ts
config-loader.ts
global-types.ts
global-variables.d.ts
index.js
ip-tools.ts
ladders-local.ts
ladders-remote.ts
ladders.ts
loginserver.ts
monitor.ts
punishments.ts
room-battle.ts
room-game.ts
roomlogs.ts
rooms.ts
sockets.js
team-validator-async.js
users.ts
verifier.ts