Skip to content

«Войти» on the diary sign-in can sit without an answer for minutes #233

Closed

Description

@lumenpearson

What is broken. Pressing «Войти» on the diary sign-in can leave the button busy with no answer for a very long time. Owner's words: «без ответа/слишком долгий тайм-аут».

Cause. Every limit on the path is per call, and nothing bounds their sum.

  • Preflight GET /capabilities to our server: up to 60 s (call timeout, with a retry on connection failure).
  • The phone's own sign-in to the diary: 40 s per call. «Сетевой город» takes three calls, or five with the role step, which makes 120–200 s.
  • POST /session to our server: up to 60 s on the phone's side. On the server, the NetSchool adopt is four sequential upstream reads with per-phase limits only, and no overall deadline.
  • The goodbye to a held session, when re-submitting, runs before the spinner is even shown.
  • The worst case is about six minutes. Throughout it the back gesture is swallowed and the back button disabled.

Every timeout is mapped to a message («‹host› не ответил вовремя»); the problem is how long it takes to get there.

Expected.

  • One deadline over the whole diary exchange (about 25 s) and a short one on the preflight (about 10 s), both producing the existing timeout message.
  • A deadline on the server's upstream adopt, inside the phone's 30 s read timeout and Vercel's 30 s limit, answered with the existing 503 «upstream» that the phone maps to «Дневник не отвечает».
  • The spinner shown before the goodbye.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions