You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A table with 158369 rows and the response size of 67735631 bytes causes subsequent queries to hang. This could be related to #175.
Observations
The query, select * from table1;, causes the client to get stuck and doesn't return any meaningful results, while the same query with LIMIT will work, that is select * from table1 limit 158369;.
2023-03-09T17:44:35+01:00 ERR Hook returned an error error="rpc error: code = ResourceExhausted desc = grpc: received message larger than max (4492364 vs. 4194304)" hookName=HOOK_NAME_ON_TRAFFIC_FROM_SERVER priority=1000
I tried bytes.Buffer with io.CopyX and a few other methods, but none of them work as expected. They get stuck waiting for an EOF, but PostgreSQL wire protocol doesn't work with EOFs, because it send the message size in the message.
I don't want to bind GatewayD to any specific protocol for reading/writing server messages, as it makes it hard to extend and it defeats the purpose of using and extending plugins. That's why I rely on plugins to decode/encode server messages and they need to import the decoder/encoder/parser from the SDK.
A table with 158369 rows and the response size of 67735631 bytes causes subsequent queries to hang. This could be related to #175.
Observations
select * from table1;
, causes the client to get stuck and doesn't return any meaningful results, while the same query withLIMIT
will work, that isselect * from table1 limit 158369;
.Run
to hang ononTrafficFromServer
hook #175.2023-03-09T17:44:35+01:00 ERR Hook returned an error error="rpc error: code = ResourceExhausted desc = grpc: received message larger than max (4492364 vs. 4194304)" hookName=HOOK_NAME_ON_TRAFFIC_FROM_SERVER priority=1000
bytes.Buffer
withio.CopyX
and a few other methods, but none of them work as expected. They get stuck waiting for anEOF
, but PostgreSQL wire protocol doesn't work withEOF
s, because it send the message size in the message.bytes.Buffer
worked: Improve client performance #200.The text was updated successfully, but these errors were encountered: