libsql / hrana-client-ts

Hrana client for TypeScript and JavaScript
https://libsql.org/hrana-client-ts/
MIT License
23 stars 7 forks source link

Make sure fetch response body is read or cancelled during flush #18

Closed athoscouto closed 2 months ago

athoscouto commented 2 months ago

Not reading a fetch response can block the connection, making clients require multiple connections to keep working. In environments where the number of connections are limited, clients may experience random networking errors.

athoscouto commented 2 months ago

This should never happen right? We always have encoding equal to json or protobuf, no?

libsql-server should always return one of the two indeed. But we have many proxies along the way that might return something else in case of errors