[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. 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 |