diff options
author | msvensson@pilot.mysql.com <> | 2007-01-29 14:31:48 +0100 |
---|---|---|
committer | msvensson@pilot.mysql.com <> | 2007-01-29 14:31:48 +0100 |
commit | 7eaa82ea38e1a9f0598ecfc88439583b51567e64 (patch) | |
tree | 439ceec10fe0ab45b030eb00f2e47e06330862a3 /vio | |
parent | 29be5ce83641ff65adc7f2059efb0e5adec1079c (diff) | |
download | mariadb-git-7eaa82ea38e1a9f0598ecfc88439583b51567e64.tar.gz |
Bug#22943 syscall pruning in libmysql
- Set the timeout values only where needed
Diffstat (limited to 'vio')
-rw-r--r-- | vio/vio.c | 2 | ||||
-rw-r--r-- | vio/viossl.c | 11 |
2 files changed, 1 insertions, 12 deletions
diff --git a/vio/vio.c b/vio/vio.c index 6174acd7024..1eeafe483dc 100644 --- a/vio/vio.c +++ b/vio/vio.c @@ -96,7 +96,7 @@ void vio_reset(Vio* vio, enum enum_vio_type type, vio->in_addr =vio_ssl_in_addr; vio->vioblocking =vio_ssl_blocking; vio->is_blocking =vio_is_blocking; - vio->timeout =vio_ssl_timeout; + vio->timeout =vio_timeout; } else /* default is VIO_TYPE_TCPIP */ #endif /* HAVE_OPENSSL */ diff --git a/vio/viossl.c b/vio/viossl.c index 62145fe5006..8da9723d7d8 100644 --- a/vio/viossl.c +++ b/vio/viossl.c @@ -416,15 +416,4 @@ int vio_ssl_blocking(Vio * vio __attribute__((unused)), } -void vio_ssl_timeout(Vio *vio __attribute__((unused)), - uint which __attribute__((unused)), - uint timeout __attribute__((unused))) -{ -#ifdef __WIN__ - ulong wait_timeout= (ulong) timeout * 1000; - (void) setsockopt(vio->sd, SOL_SOCKET, - which ? SO_SNDTIMEO : SO_RCVTIMEO, (char*) &wait_timeout, - sizeof(wait_timeout)); -#endif /* __WIN__ */ -} #endif /* HAVE_OPENSSL */ |