tursodatabase/libsql
在 GitHub 查看Recover client from server restarts when handling batons?
Open
#1,856 建立於 2024年11月29日
enhancementhelp wantedquestionremote protocol
倉庫指標
- Star
- (16,744 star)
- PR 合併指標
- (平均合併 23小時 19分鐘) (30 天內合併 1 個 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