diff options
author | unknown <SergeyV@selena.> | 2005-09-07 15:57:14 +0400 |
---|---|---|
committer | unknown <SergeyV@selena.> | 2005-09-07 15:57:14 +0400 |
commit | 22b3e6f8823f78e40363d48ae44b7a57d06d2554 (patch) | |
tree | bcf60553d2cda3c381a8cd81327d8f8cbfd032f9 /vio/viossl.c | |
parent | c9b589defa19cc955537213337d941c082607813 (diff) | |
download | mariadb-git-22b3e6f8823f78e40363d48ae44b7a57d06d2554.tar.gz |
Fixes bug #5588. Additions after merge from 4.0.
sql-common/client.c:
Fixes bug #5588. checks if operation was timed out.
vio/vio.c:
Added vio_was_interrupted() function references to detect timed out
operation properly on win32.
vio/vio_priv.h:
Added vio_ssl_was_interrupted() function that detects timed out
operation properly on win32.
vio/viosocket.c:
Minor changes to follow up the coding standard.
vio/viossl.c:
Added vio_ssl_was_interrupted() function that detects timed out
operation properly on win32.
Diffstat (limited to 'vio/viossl.c')
-rw-r--r-- | vio/viossl.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vio/viossl.c b/vio/viossl.c index 2f608209a53..a3a2e7190bd 100644 --- a/vio/viossl.c +++ b/vio/viossl.c @@ -184,6 +184,15 @@ vio_ssl_should_retry(Vio * vio __attribute__((unused))) } +my_bool +vio_ssl_was_interrupted(Vio *vio __attribute__((unused))) +{ + int en= socket_errno; + return (en == SOCKET_EAGAIN || en == SOCKET_EINTR || + en == SOCKET_EWOULDBLOCK || en == SOCKET_ETIMEDOUT); +} + + int vio_ssl_close(Vio * vio) { int r; |