mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge pilot.mysql.com:/home/msvensson/mysql/bug22943/my50-bug22943
into pilot.mysql.com:/home/msvensson/mysql/bug22943/my51-bug22943 sql-common/client.c: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/net_serv.cc: Auto merged sql/repl_failsafe.cc: Auto merged sql/set_var.cc: Auto merged sql/slave.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_repl.cc: Auto merged vio/vio.c: Auto merged vio/viossl.c: Auto merged
This commit is contained in:
@ -4036,10 +4036,9 @@ static bool read_init_file(char *file_name)
|
||||
|
||||
static void create_new_thread(THD *thd)
|
||||
{
|
||||
NET *net=&thd->net;
|
||||
DBUG_ENTER("create_new_thread");
|
||||
|
||||
NET *net=&thd->net; // For easy ref
|
||||
net->read_timeout = (uint) connect_timeout;
|
||||
if (protocol_version > 9)
|
||||
net->return_errno=1;
|
||||
|
||||
@ -4333,12 +4332,7 @@ pthread_handler_t handle_connections_sockets(void *arg __attribute__((unused)))
|
||||
}
|
||||
if (sock == unix_sock)
|
||||
thd->security_ctx->host=(char*) my_localhost;
|
||||
#ifdef __WIN__
|
||||
/* Set default wait_timeout */
|
||||
ulong wait_timeout= global_system_variables.net_wait_timeout * 1000;
|
||||
(void) setsockopt(new_sock, SOL_SOCKET, SO_RCVTIMEO, (char*)&wait_timeout,
|
||||
sizeof(wait_timeout));
|
||||
#endif
|
||||
|
||||
create_new_thread(thd);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user