mariadb/vio
Vladislav Vaintroub 70d6c944cb MDEV-14113 Use abortive TCP close, in case server closes the connection
first, and we do not not care whether client has received all data.

This is a TCP optimization to avoid TIME_WAIT in TCP connection teardown.

This patch would abort connection on timeout, which usually happens when
client reads a large result set, at slower pace then the server can
write.

The patch also cleans up socket timeout handling, so that Windows
is consistent with another platforms (using nonblocking socket IO
 + waiting in poll/select on single socket, rather than setsockopt).
This makes identifying timeouts easier.


Also removed the superficial shutdown() before closesocket() in a few
places where it was used, because it  was never needed , and
reportedly breaks SO_LINGER on Windows.
2017-12-11 14:54:17 +00:00
..
docs
CMakeLists.txt Build improvements and cleanups. 2017-09-08 18:22:15 +00:00
test-ssl.c
test-sslclient.c
test-sslserver.c
vio.c MDEV-13844 : Fix Windows warnings. Fix DBUG_PRINT. 2017-09-28 17:20:46 +00:00
vio_priv.h
viopipe.c
vioshm.c
viosocket.c MDEV-14113 Use abortive TCP close, in case server closes the connection 2017-12-11 14:54:17 +00:00
viossl.c MDEV-13844 : Fix Windows warnings. Fix DBUG_PRINT. 2017-09-28 17:20:46 +00:00
viosslfactories.c MDEV-13844 : Fix Windows warnings. Fix DBUG_PRINT. 2017-09-28 17:20:46 +00:00
viotest-ssl.c
viotest-sslconnect.cc
viotest.cc