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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
cd3b680d
Commit
cd3b680d
authored
Jun 05, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed problem with alarms when reading too big packet
parent
23daa1b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
sql/net_serv.cc
sql/net_serv.cc
+5
-5
No files found.
sql/net_serv.cc
View file @
cd3b680d
...
...
@@ -431,13 +431,13 @@ net_real_write(NET *net,const char *packet,ulong len)
big packet
*/
static
void
my_net_skip_rest
(
NET
*
net
,
ulong
remain
,
thr_alarm_t
*
alarmed
)
static
void
my_net_skip_rest
(
NET
*
net
,
ulong
remain
,
thr_alarm_t
*
alarmed
,
ALARM
*
alarm_buff
)
{
ALARM
alarm_buff
;
uint
retry_count
=
0
;
if
(
!
thr_alarm_in_use
(
&
alarmed
))
if
(
!
thr_alarm_in_use
(
alarmed
))
{
if
(
!
thr_alarm
(
alarmed
,
net
->
timeout
,
&
alarm_buff
)
||
if
(
!
thr_alarm
(
alarmed
,
net
->
timeout
,
alarm_buff
)
||
(
!
vio_is_blocking
(
net
->
vio
)
&&
vio_blocking
(
net
->
vio
,
TRUE
)
<
0
))
return
;
/* Can't setup, abort */
}
...
...
@@ -606,7 +606,7 @@ my_real_read(NET *net, ulong *complen)
{
#ifdef MYSQL_SERVER
if
(
i
==
1
)
my_net_skip_rest
(
net
,
len
,
&
alarmed
);
my_net_skip_rest
(
net
,
len
,
&
alarmed
,
&
alarm_buff
);
#endif
len
=
packet_error
;
/* Return error */
goto
end
;
...
...
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