tursodatabase/libsql

Recover client from server restarts when handling batons?

オープン

#1,856 opened on 2024/11/29

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)C (490 件のフォーク)batch import
enhancementhelp wantedquestionremote protocol

Repository metrics

Stars
 (16,744 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Currently, I think that when a client holds a server-issued baton and attempts to send it back after a server restart, the request fails with a BatonInvalid error. This error breaks the client's workflow and requires manual intervention.

If this turns out to be the case, let's fix that so thatif a BatonInvalid error occurs and no transaction is in progress, the client should:

  • Automatically restart the stream
  • Obtain a new baton from the server
  • Continue normal operation

コントリビューターガイド