Vladislav Vaintroub
629ec64630
Fix PVIO to return number of bytes read/written as "signed" integer
...
since there is a lot of checks for return code being < 0 or -1.
2016-10-13 17:42:03 +00:00
Georg Richter
85185da88f
move closesocket to error label
2016-09-27 08:22:23 +02:00
Georg Richter
c8dd0899d4
When an attempt to open a unix sucket failed, the socket was not properly closed.
2016-09-24 11:14:53 +02:00
Sergei Golubchik
0fa6b16c52
comments, use CR_CONNECTION_ERROR also for tcpip
2016-09-15 12:30:44 +02:00
Vladislav Vaintroub
da8977d670
Merge branch 'master' into serg-integr
2016-09-12 11:47:14 +00:00
Vladislav Vaintroub
38b5e400da
C/C integration : Fix mysql_test_client test
...
- #include <stdlib.h> for strtod and other prototypes
- remove ma_config_win.h as it redefines things from ma_config.h
- fix compile warnings
2016-09-07 17:14:02 +00:00
Georg Richter
9f88e25fd6
Compiler warning fixes
2016-09-03 12:46:50 +02:00
Georg Richter
b92b37c746
manual merge from 2.2: if getaddrinfo returns EAI_AGAIN we need to try again until connection timeout passed.
2016-08-16 14:56:39 +02:00
Georg Richter
45a635dead
Fixed compiler warnings
...
removed latest test for ssl threads (test.c)
2016-06-29 15:22:01 +02:00
Vladislav Vaintroub
437b9cd1e4
CONC-184 : provide a function to cancel a current connection
...
(without invalidating MYSQL struct, without sending KILL)
This apparently is useful for replication handling in the server
2016-05-21 12:35:06 +00: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
3cfc5f8654
Removed option WITH_NONBLOCK
2016-03-10 09:51:53 +01:00
Georg Richter
cc0c34554d
- Fixes for 10.2-integration
...
- As requested by Wlad we use connect timeout for read/write unless
the connection was established.
- Added experimental session cache support for OpenSSL. It's currently
disabled
2016-03-08 17:08:01 +01:00
Georg Richter
05eeef7fda
Fix for windows build (hide ma_send function by #ifndef _WIN32)
2016-03-02 17:30:44 +01:00
Georg Richter
ea0f2e68af
Merge branch 'master' of https://github.com/MariaDB/mariadb-connector-c
2016-03-02 16:23:27 +01:00
Georg Richter
e157d4fcad
Fix for Solaris builds
2016-03-02 16:22:34 +01:00
Georg Richter
89c33d855a
Fixed crash introduced by last fix from Wlad: getsockopt expects integer
...
ptr as last parameter
2016-03-01 19:37:34 +01:00
Georg Richter
32eff12a62
Patch by Wlad: check exceptfds after select() call on windows platforms
2016-03-01 18:36:18 +01:00
Georg Richter
38b78704e0
Fix for read/write timeout for sockets on non Windows platforms
2016-02-23 13:25:03 +01:00
Georg Richter
d68b48f954
10.2 integration fixes
...
- changed plugin API to avoid crashes: Oracle/MariaDB changed
structure several times without updating interface version.
- ABI fixes: moved additional net items to net->extension (connection
handler and com_multi buffer)
2016-02-22 11:37:13 +01:00
Georg Richter
4ca933bb81
Global cleanup:
...
removed global locks
removed dead code and files
removed dbug
2016-02-08 18:43:02 +01:00
Georg Richter
88015678c9
removed my_vsnprintf
...
removed llstr.c
renamed int2string function with prefix ma_
2016-02-04 14:22:27 +01:00
Georg Richter
ad58fa7868
More cleanup for 10.2 integration
2016-02-04 13:11:44 +01:00
Georg Richter
c5ca735dd3
Renamed prefixes for 10.2 integration
2016-02-02 12:12:04 +01:00
Georg Richter
b5cf443681
Windows fixes for remote_io plugin
2016-01-04 10:02:10 +01:00
Georg Richter
d68c7dae95
Fixed warning on Windows 64-bit build
2015-12-19 17:07:10 +01:00
Georg Richter
f30bb95c6a
Fix for asynchronous (reconnect)
...
Fixed memory leak after reconnect/change user
2015-11-19 16:55:25 +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
72f7c4abf5
Windows 64-bit fixes:
...
changed type of length parameter in mysql_stmt_prepare,
mysql_real_query, mysql_stmt_send_long_data (incl. async _start
functions) from unsigned long to size_t.
Fixed warnings
2015-11-05 11:52:50 +01:00
Georg Richter
2f4061eadc
CONC-147: Allow client to bind to a specific address
...
- minor fixes
- added testcase
2015-11-04 09:22:29 +01:00
Georg Richter
e85caa83ca
Added new test for testing binding interfaces:
...
To run these tests a TCP/IP connection is required and
the environment variable MYSQL_TEST_BINADDR has to be specified.
2015-11-02 18:42:00 +01:00
Georg Richter
ff13c9f749
Fix for binding client interface: for client binding we need
...
a different list
2015-11-02 17:15:37 +01:00
Georg Richter
630d742b89
Last push was incomplete, it contained only new file (old_password.c)
2015-11-02 14:58:04 +01:00
Georg Richter
7500f37150
- Renamed cio to pvio (pluggable virtual IO)
...
- minor fixes in windows schannel
2015-10-27 10:24:48 +01:00