mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 09:45:31 +02:00
Fix valgrind errors with network timeouts.
This commit is contained in:
parent
68d6d4fc2b
commit
8d90582a3b
2 changed files with 1 additions and 3 deletions
|
|
@ -138,8 +138,6 @@ my_bool my_net_init(NET *net, Vio* vio)
|
|||
net->net_skip_rest_factor= 0;
|
||||
net->last_errno=0;
|
||||
net->unused= 0;
|
||||
net->read_timeout=0;
|
||||
net->write_timeout=0;
|
||||
|
||||
if (vio != 0) /* If real connection */
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ void my_net_local_init(NET *net)
|
|||
{
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
net->max_packet= (uint) global_system_variables.net_buffer_length;
|
||||
|
||||
net->read_timeout= net->write_timeout= 0;
|
||||
my_net_set_read_timeout(net, (uint)global_system_variables.net_read_timeout);
|
||||
my_net_set_write_timeout(net,
|
||||
(uint)global_system_variables.net_write_timeout);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue