summaryrefslogtreecommitdiff
path: root/extra/yassl/src/socket_wrapper.cpp
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-09-01 11:46:43 +0200
committerunknown <msvensson@neptunus.(none)>2005-09-01 11:46:43 +0200
commit100e92f489efdca16a8cbfcfb2ee80c7348fc401 (patch)
tree4daf5317650035bf1bbdfc42f168595d88bc9d54 /extra/yassl/src/socket_wrapper.cpp
parent43e07c3b916bb967838c2dc5c63be3589385b4cf (diff)
downloadmariadb-git-100e92f489efdca16a8cbfcfb2ee80c7348fc401.tar.gz
Bug #11286 yassl incompatible with "load data infile"
- Make sure that mysqltest always uses ssl when connecting to the server. - Pass a i32-bit int variable as argument to FIONREAD ioctl. client/mysqltest.c: Set the flag CLIENT_REMENBER_OPTIONS so that all connection attempts from mysqltest is done with the same settings. Old impl caused mysqltest to loose all it's settings in the second connection attempt, ex ssl settings. extra/yassl/src/socket_wrapper.cpp: 64-bit Solaris requires the variable passed to FIONREAD be a 32-bit value. Using "int" unless _WIN32_ is defined. sql/sql_parse.cc: Update error message when sslaccepts fails. Must have been a copy and paste error. vio/viossl.c: Minor fixes Add timeout to DBUG_PRINT use function vio_ssl_fd to get sd from vio Remove extra whitespace vio/viosslfactories.c: Remove DBUG_PRINT("enter" in sslaccept and sslconnect as it tries to print out null strings. That is not suported on all platforms.
Diffstat (limited to 'extra/yassl/src/socket_wrapper.cpp')
-rw-r--r--extra/yassl/src/socket_wrapper.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/extra/yassl/src/socket_wrapper.cpp b/extra/yassl/src/socket_wrapper.cpp
index 2252dfafdc5..91cea1f9753 100644
--- a/extra/yassl/src/socket_wrapper.cpp
+++ b/extra/yassl/src/socket_wrapper.cpp
@@ -93,11 +93,15 @@ void Socket::closeSocket()
uint Socket::get_ready() const
{
- unsigned long ready = 0;
-
#ifdef _WIN32
+ unsigned long ready = 0;
ioctlsocket(socket_, FIONREAD, &ready);
#else
+ /*
+ 64-bit Solaris requires the variable passed to
+ FIONREAD be a 32-bit value.
+ */
+ int ready = 0;
ioctl(socket_, FIONREAD, &ready);
#endif