MDEV-16277 - fix tcp_nodelay test.

Do not attempt to set TCP_NODELAY on Unix domain socket.
This commit is contained in:
Vladislav Vaintroub 2018-08-12 00:56:07 +01:00
parent 077e590bbc
commit b05ee14d95

View file

@ -442,7 +442,8 @@ int vio_nodelay(Vio *vio, my_bool on)
int no_delay= MY_TEST(on);
DBUG_ENTER("vio_nodelay");
if (vio->type == VIO_TYPE_NAMEDPIPE || vio->type == VIO_TYPE_SHARED_MEMORY)
if (vio->type == VIO_TYPE_NAMEDPIPE || vio->type == VIO_TYPE_SHARED_MEMORY
|| vio->type == VIO_TYPE_SOCKET)
{
DBUG_RETURN(0);
}