mirror of https://github.com/sysown/proxysql
In extended query mode, ReadyForQuery is normally deferred when there are pending messages in the queue; it is sent only after the entire extended query frame has been processed. Edge case: if a message fails with an error while the queue still contains pending messages, the queue is cleared later in the session and those pending messages are discarded. In that case, ReadyForQuery would never be sent. Change: when a result indicates an error, send ReadyForQuery immediately. The extended-query flag will still be reset later in the session. This ensures ReadyForQuery is always emitted and prevents clients from waiting indefinitely.pull/5078/head
parent
8a3bab5002
commit
fff2a91381
Loading…
Reference in new issue