libsql / hrana-client-ts

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

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

Closed athoscouto closed 1 month ago

athoscouto commented 1 month 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 1 month 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