[MDEV-9059] protocol: bundle first command with the authentication packet Created: 2015-11-02 Updated: 2022-04-25 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Sergei Golubchik | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Connectors | ||
| Issue Links: |
|
||||||||||||||||||||
| Sprint: | 10.2.0-10, 10.2.0-11, 10.2.1-1, 10.2.1-3, 10.2.1-4, 10.2.1-5, 10.2.3-2 | ||||||||||||||||||||
| Description |
|
Optimistically assuming that the authentication was successful, the client doesn't need to wait for the ok packet from the server, but can send the first command right away, including it in the authentication packet. The idea is to store the command in separate buffer (or just make new network buffer) before authentication, then in case of success of the authentication execute it (auth itself can cause exchange of the packet that is why storing is requited). |
| Comments |
| Comment by Oleksandr Byelkin [ 2016-10-11 ] |
|
revision-id: e52317b01a50ee51d703913fb046f5419432dc2f (mariadb-10.2.2-35-ge52317b) MDEV-9059: protocol: bundle first command with the authentication packet — |
| Comment by Sergei Golubchik [ 2016-11-30 ] |
|
does Connector/C support it? |
| Comment by Sergei Golubchik [ 2016-12-27 ] |
|
waiting for |
| Comment by Diego Dupin [ 2017-11-01 ] |
protocol change :new capability :(number has now to change since 34 has been used for MARIADB_CLIENT_STMT_BULK_OPERATIONS, but that's what is implemented in branch) Handshake response packet
The result of this COM_MULTI command (if MARIADB_CLIENT_COM_IN_AUTH will be received after authentication is complete COM_MULTI command
|
| Comment by Oleksandr Byelkin [ 2017-11-06 ] |
|
github tree is bb-10.3-MDEV-9059 |
| Comment by Oleksandr Byelkin [ 2017-11-07 ] |
|
revision-id: d62ea85e6f6c273a712f951da907ced06f01bc03 (mariadb-10.3.2-39-gd62ea85e6f6) MDEV-9059: protocol: bundle first command with the authentication packet — |
| Comment by Oleksandr Byelkin [ 2017-11-07 ] |
|
Now Georg add tests to connector C |
| Comment by Vladislav Vaintroub [ 2018-11-21 ] |
|
Review done : commented on https://github.com/mariadb/server/commit/d62ea85e6f6c273a712f951da907ced06f01bc03 |