Skip to content

Fix test assertions for TLS-enabled mariadb-connector-c connections#1432

Open
FaramosCZ wants to merge 1 commit into
brianmario:masterfrom
FaramosCZ:SSL
Open

Fix test assertions for TLS-enabled mariadb-connector-c connections#1432
FaramosCZ wants to merge 1 commit into
brianmario:masterfrom
FaramosCZ:SSL

Conversation

@FaramosCZ
Copy link
Copy Markdown

mariadb-connector-c 3.4.0+ enables MYSQL_OPT_SSL_VERIFY_SERVER_CERT by default (MDEV-31857), so all TCP connections use TLS. This changes the error messages surfaced when connections are disrupted:

  • fork() corrupts shared TLS state, raising "TLS/SSL error" in both child and parent instead of silent success
  • Connection kills and timeouts surface as TLS errors rather than "Lost connection to MySQL server"

Adapt test expectations to accept both TLS and non-TLS error messages, so the test suite passes regardless of whether the connector library enforces TLS.

mariadb-connector-c 3.4.0+ enables MYSQL_OPT_SSL_VERIFY_SERVER_CERT by
default (MDEV-31857), so all TCP connections use TLS. This changes the
error messages surfaced when connections are disrupted:

- fork() corrupts shared TLS state, raising "TLS/SSL error" in both
  child and parent instead of silent success
- Connection kills and timeouts surface as TLS errors rather than
  "Lost connection to MySQL server"

Adapt test expectations to accept both TLS and non-TLS error messages,
so the test suite passes regardless of whether the connector library
enforces TLS.

Co-Authored-By: Claude AI <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant