[CONC-507] setting max_allowed_packet size in ma_net_init() might end up in race condition Created: 2020-10-20  Updated: 2023-12-06  Resolved: 2020-10-20

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

Type: Task Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

Thanks to Alexander Sapin for reporting this issue here:

Race condition

It might be a relict from old libmysql 3.23 code, but it is not necessary to adjust max_allowed_packet in every call of ma_net_init().
If necessary max_allowed_packet should be set once via mysql_optionsv (either globally or per connection).


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