[CONC-320] SSL and non-blocking API cannot be used together: they are mutually exclusive Created: 2018-03-29  Updated: 2018-04-18  Resolved: 2018-04-18

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.0.2, 3.0.3
Fix Version/s: 3.0.4

Type: Bug Priority: Major
Reporter: René Cannaò Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

Any



 Description   

SSL/TLS and non-blocking API cannot be used together.
The reason is that functions ma_pvio_read() and ma_pvio_write() do not consider the possibility that both options are available.
Trying to combine SSL and non-blocking API will result in connections being established (thanks to ma_tls_connect()), but unable to send any command and retrieve any result.



 Comments   
Comment by René Cannaò [ 2018-03-29 ]

In ProxySQL the bug was fixed here: https://github.com/sysown/proxysql/commit/1b2fe335c7d799dc467090d2ed73dfa17e9a9bfc
The fix is not generic enough to be merged upstream, because it applies only to OpenSSL and not to gnutls or schannel

Comment by Georg Richter [ 2018-04-18 ]

Fixed in C/C 3.0.4.
Please note that the non blocking api doesn't work with Schannel yet, it's fixed for OpenSSL and GnuTLS only.

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