tetrio / issues

Report issues and discuss improvements / feature requests around TETR.IO
https://tetr.io
392 stars 21 forks source link

Attempting to join room multiple times sometimes hangs on 'joining room' instead of erroring #557

Closed UniQMG522 closed 3 years ago

UniQMG522 commented 3 years ago

Checklist (issue will be disregarded & closed if incomplete!)


Describe the bug/issue

Seems like the you are already in this room error commands aren't sending or are getting dropped. Seems to fail most of the time. Reproducible from both client and bot.

Reproducing

Steps to reproduce the behavior:

  1. Create a room
  2. Attempt to join it from a second tab

Expected behavior

Server should send a you are already in this room error

Your setup

Additional context

Add any other context about the problem here. Browser logs are helpful (press F12, and go to the Console tab to view said console)

Bot logs + screenshot
Ribbon null reconnecting in 5ms (reconnects: 1)
2020-12-14T22:42:30.747Z null in {
  command: 'hello',
  packets: [],
  id: 'bcc267092bcce3ef',
  resume: '4828dccba8adbd5b66dab55844352ed4fa138d905f52acd76bec5bd57bf67c42'
}
Ribbon bcc267092bcce3ef opened
2020-12-14T22:42:31.187Z bcc267092bcce3ef out {
  id: 1,
  command: 'authorize',
  data: {
    token: '<removed>',
    handling: { das: 0, arr: 0, sdf: 0, safelock: false },
    signature: {
      mode: 'production',
      version: '5.1.3',
      countdown: false,
      commit: [Object],
      serverCycle: 'tFOIyndcf',
      build: [Object],
      process: 467383
    },
    i: undefined
  }
}
2020-12-14T22:42:31.370Z bcc267092bcce3ef in {
  id: 1,
  command: 'authorize',
  data: {
    success: true,
    maintenance: false,
    worker: { name: 'rewrite-chihaya', flag: 'NL' }
  }
}
State changed: READY
joining room
2020-12-14T22:42:31.373Z bcc267092bcce3ef out { id: 2, command: 'joinroom', data: 'UBWF' }
waiting for joinroom
2020-12-14T22:42:31.548Z bcc267092bcce3ef in {
  id: 2,
  command: 'migrate',
  data: {
    endpoint: 'wss://tetr.io/ribbon-lucia',
    name: 'rewrite-lucia',
    flag: 'NL'
  }
}
Ribbon bcc267092bcce3ef changing endpoint (new endpoint: wss://tetr.io/ribbon-lucia)
Ribbon bcc267092bcce3ef closed (ping timeout)
Ribbon bcc267092bcce3ef resuming
2020-12-14T22:42:32.211Z bcc267092bcce3ef in {
  command: 'hello',
  packets: [
    { id: 1, command: 'authorize', data: [Object] },
    { id: 2, command: 'migrate', data: [Object] },
    { id: 3, command: 'migrated', data: [Object] }
  ],
  id: 'bcc267092bcce3ef',
  resume: '4828dccba8adbd5b66dab55844352ed4fa138d905f52acd76bec5bd57bf67c42'
}
Ribbon bcc267092bcce3ef resumed
2020-12-14T22:42:35.465Z bcc267092bcce3ef in { command: 'pong' }
2020-12-14T22:42:40.529Z bcc267092bcce3ef in { command: 'pong' }
2020-12-14T22:42:45.463Z bcc267092bcce3ef in { command: 'pong' }
2020-12-14T22:42:50.454Z bcc267092bcce3ef in { command: 'pong' }
2020-12-14T22:42:55.465Z bcc267092bcce3ef in { command: 'pong' }
2020-12-14T22:43:00.466Z bcc267092bcce3ef in { command: 'pong' }
github-actions[bot] commented 3 years ago

This issue has not seen any activity in 30 days. If the issue is still relevant, please comment on it or the issue will be automatically closed in 7 days. This way, the issue tracker can be kept clean. Thank you!

o5k commented 3 years ago

wait i thought i closed this

o5k commented 3 years ago

(was fixed a while ago, was indeed error messages getting dropped causing the client to just kinda... wait)