tursodatabase/libsql

Recover client from server restarts when handling batons?

开放

#1,856 创建于 2024年11月29日

 (2 条评论) (0 个反应) (0 位负责人)C (490 个派生)batch import
enhancementhelp wantedquestionremote protocol

仓库指标

星标
 (16,744 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南