[CONJ-828] Ensure protocol state Created: 2020-09-10  Updated: 2020-09-10  Resolved: 2020-09-10

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: None
Fix Version/s: 2.7.0

Type: New Feature Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

When a query is issued, the connector ensures that any streaming resultset will be fully read from the socket before issuing a new command.
This permits to ensure the socket state.

Adding a new option `ensureSocketState` that when enable will ensure that the socket buffer is empty before issuing new command. (this doesn't concern pipelining commands). If data is present in socket. An error will be raised, throwing the content of socket data to permit identification of error. The goal of this option is mainly for debugging.

This functionality add a few overheads so will be disabled by default

If enable, this option will permit to identify issue like CONJ-826.


Generated at Thu Feb 08 03:18:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.