Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
8d90582a
Commit
8d90582a
authored
Dec 29, 2011
by
Vladislav Vaintroub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix valgrind errors with network timeouts.
parent
68d6d4fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
sql/net_serv.cc
sql/net_serv.cc
+0
-2
sql/sql_client.cc
sql/sql_client.cc
+1
-1
No files found.
sql/net_serv.cc
View file @
8d90582a
...
@@ -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 */
{
{
...
...
sql/sql_client.cc
View file @
8d90582a
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment