Georg Richter
f97bb2e92e
Fix failing tests when server runs on a different machine
2024-06-10 13:19:49 +02:00
Georg Richter
003b5cd168
Follow up for CONC-622 test:
...
Host 0.0.0.0 is mapped to locahost, so we need another invalid
host address (1.0.0.0) instead and reduce the number of loops.
2023-01-15 17:41:29 +01:00
Georg Richter
da9bb98c0c
CONC-622: Fix double free() if asnyc connect failed
...
If mysql_real_connect_start/cont failed, we need to
set async->pvio to zero after calling ma_pvio_close
to avoid double free() in mysql_close.
2022-12-27 14:36:44 +01:00
pasha-bolokhov
6710f59817
Update async.c
...
Typo fix
2021-05-17 07:54:50 -07:00
Georg Richter
f226c3b257
Fix for CONC-320:
...
Non blocking/asynchronous support for OpenSSL and GnuTLS.
Please note that Schannel in asynchronous mode is not supported yet.
2018-04-17 10:35:49 +02:00
Georg Richter
83eef02ec8
Test fixes:
...
for api functions which require string with length parameter (e.g.
mysql_real_connect() or mysql_stmt_prepare() we now use the macro
SL(string) which substitutes string and string length.
2018-02-16 13:05:35 +01:00
Georg Richter
4ab155cf39
Unit test fixes for server integration
...
- SSL tests require CERT_PATH. Subdirectory certs was removed. If Connector/C is build outside of the server tree, certification path has to be specified manually (-DCERT_PATH=/path/to/certs).
- All tables and users will removed, if the test passed (otherwise mtr will complain).
2017-03-04 17:37:39 +01:00
Georg Richter
9f88e25fd6
Compiler warning fixes
2016-09-03 12:46:50 +02:00
Georg Richter
bea035a72b
- Unittests: link static library instead of dynamic
...
- TLS/SSL: renamed HAVE_SSL to HAVE_TLS to avoid trouble in
10.2-integration
- Fixed wrong timeout in non-blocking mode
- Fixed valgrind error in prepared statement
2016-03-28 10:29:55 +02:00
Georg Richter
d73e4c23a2
Added new API function mysql_get_info/mysql_get_infov which retrieves
...
global or connection dependent information:
mysql_get_infov(MYSQL *mysql, enum mariadb_value value, void *arg, ...)
the following value types are supported:
MARIADB_CHARSET_ID (requires numeric 4th parameter)
MARIADB_CHARSET_INFO (requires string 4th parameter)
MARIADB_CHARSET_NAME
MARIADB_CLIENT_ERRORS
MARIADB_CLIENT_VERSION
MARIADB_CLIENT_VERSION_ID
MARIADB_CONNECTION_ASYNC_TIMEOUT
MARIADB_CONNECTION_ASYNC_TIMEOUT_MS
MARIADB_CONNECTION_HOST
MARIADB_CONNECTION_INFO
MARIADB_CONNECTION_PORT
MARIADB_CONNECTION_PROTOCOL_VERSION_ID
MARIADB_CONNECTION_PVIO_TYPE
MARIADB_CONNECTION_SCHEMA
MARIADB_CONNECTION_SERVER_TYPE
MARIADB_CONNECTION_SERVER_VERSION
MARIADB_CONNECTION_SERVER_VERSION_ID
MARIADB_CONNECTION_SOCKET
MARIADB_CONNECTION_SSL_CIPHER
MARIADB_CONNECTION_SSL_VERSION
MARIADB_CONNECTION_SSL_VERSION_ID
MARIADB_CONNECTION_TYPE
MARIADB_CONNECTION_UNIX_SOCKET
MARIADB_CONNECTION_USER
MARIADB_MAX_ALLOWED_PACKET
MARIADB_NET_BUFFER_LENGTH
MARIADB_CONNECTION prefix indicates that a valid connection handle has
to be passed as first parameter.
2015-12-28 07:32:53 +01:00
Georg Richter
ebe3cc9935
- Added new function mariadb_get_connection_type which returns -1 on
...
error, or MARIADB_CONNECTION_{UNIX_SOCKET,TCP,NAMEDPIPE,SHAREDMEM}
- Disabled asynchronous API for named pipes and shared memory connecit++ions
- Added package suffix ("alpha")
- removed myodbc_remove_escape api function
- Fixed return value (length) for named pipe read/write operations
2015-11-23 10:58:28 +01:00
Georg Richter
0af129fe80
Moved async read/write to pvio:
...
plugins now contain their own asynchronous read/write functions.
Todo:
- asynchronous SSL
- asynchronous read/write for non socket plugins
2015-11-16 07:37:31 +01:00
Georg Richter
9b1cbf15a5
Fix for asynchronous connect:
...
Unless the connection was successfully established mysql_get_socket will
return INVALID_SOCKET. In this case we need to check if an asynchronous
operation is in progress and return pvio from asynchronous context.
2015-11-15 08:00:43 +01:00
Georg Richter
5827c04551
Windows build fixes
2015-10-19 09:52:30 +02:00
Georg Richter
abf0080bfa
Fix for CONC-129 (asynchronous api): Check if connection is still alive in
...
mysql_close_start
2015-09-08 07:33:30 +02:00
Georg Richter
33027b899b
Fix for bug CONC-131:
...
Free async context when closing options (mysql_options_close)
2015-06-26 11:00:01 +02:00
Georg Richter
088fdacfc1
Fixed vio for non-blocking API calls
2014-11-12 18:10:22 +01:00
Georg Richter
1006e18468
Fix for OS-X build (Thanks to Eric Trinh)
...
test case fixes:
removed obsolete DBUG_* stuff
2014-11-02 05:54:30 +01:00
Georg Richter
ad0580377d
- Windows build fixes for async API
2014-04-10 10:17:45 +02:00
Georg Richter
b55403544e
Added MariaDB's asnychronous client API.
...
For more information please visit
http://mariadb.com/kb/en/non-blocking-api-reference/
2014-04-08 12:18:08 +02:00