[CONC-629] Connection attributes are limited to 0xFFFF bytes Created: 2023-01-16  Updated: 2023-01-16

Status: Open
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: markus makela Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None


 Description   

The protocol has no practical limit on the amount of connection attributes a client can send. The theoretical limit is governed by the 64-bit integer used to store the length of the attributes but in practice this is unlikely to be reached.

Connector/C limits the attributes to 65535 bytes after which it stops accepting them. The error it returns when this limit is exceeded is CR_INVALID_PARAMETER_NO which isn't very helpful either. The documentation for the attribute also didn't mention this limit before (I added it to the wiki).


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