Commit 8d90582a authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix valgrind errors with network timeouts.

parent 68d6d4fc
...@@ -138,8 +138,6 @@ my_bool my_net_init(NET *net, Vio* vio) ...@@ -138,8 +138,6 @@ my_bool my_net_init(NET *net, Vio* vio)
net->net_skip_rest_factor= 0; net->net_skip_rest_factor= 0;
net->last_errno=0; net->last_errno=0;
net->unused= 0; net->unused= 0;
net->read_timeout=0;
net->write_timeout=0;
if (vio != 0) /* If real connection */ if (vio != 0) /* If real connection */
{ {
......
...@@ -29,7 +29,7 @@ void my_net_local_init(NET *net) ...@@ -29,7 +29,7 @@ void my_net_local_init(NET *net)
{ {
#ifndef EMBEDDED_LIBRARY #ifndef EMBEDDED_LIBRARY
net->max_packet= (uint) global_system_variables.net_buffer_length; 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_read_timeout(net, (uint)global_system_variables.net_read_timeout);
my_net_set_write_timeout(net, my_net_set_write_timeout(net,
(uint)global_system_variables.net_write_timeout); (uint)global_system_variables.net_write_timeout);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment