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
33c3feda
Commit
33c3feda
authored
Sep 07, 2005
by
SergeyV@selena
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes bug #5588. Additions after merge from 4.0.
parent
784582b8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
4 deletions
+17
-4
sql-common/client.c
sql-common/client.c
+1
-1
vio/vio.c
vio/vio.c
+3
-1
vio/vio_priv.h
vio/vio_priv.h
+2
-0
vio/viosocket.c
vio/viosocket.c
+2
-2
vio/viossl.c
vio/viossl.c
+9
-0
No files found.
sql-common/client.c
View file @
33c3feda
...
...
@@ -602,7 +602,7 @@ net_safe_read(MYSQL *mysql)
DBUG_PRINT
(
"error"
,(
"Wrong connection or packet. fd: %s len: %d"
,
vio_description
(
net
->
vio
),
len
));
#ifdef MYSQL_SERVER
if
(
vio_
errno
(
net
->
vio
)
==
SOCKET_EINTR
)
if
(
vio_
was_interrupted
(
net
->
vio
)
)
return
(
packet_error
);
#endif
/*MYSQL_SERVER*/
end_server
(
mysql
);
...
...
vio/vio.c
View file @
33c3feda
...
...
@@ -50,6 +50,7 @@ void vio_reset(Vio* vio, enum enum_vio_type type,
vio
->
fastsend
=
vio_fastsend
;
vio
->
viokeepalive
=
vio_keepalive
;
vio
->
should_retry
=
vio_should_retry
;
vio
->
was_interrupted
=
vio_was_interrupted
;
vio
->
vioclose
=
vio_close_pipe
;
vio
->
peer_addr
=
vio_peer_addr
;
vio
->
in_addr
=
vio_in_addr
;
...
...
@@ -69,6 +70,7 @@ void vio_reset(Vio* vio, enum enum_vio_type type,
vio
->
fastsend
=
vio_fastsend
;
vio
->
viokeepalive
=
vio_keepalive
;
vio
->
should_retry
=
vio_should_retry
;
vio
->
was_interrupted
=
vio_was_interrupted
;
vio
->
vioclose
=
vio_close_shared_memory
;
vio
->
peer_addr
=
vio_peer_addr
;
vio
->
in_addr
=
vio_in_addr
;
...
...
@@ -88,7 +90,7 @@ void vio_reset(Vio* vio, enum enum_vio_type type,
vio
->
fastsend
=
vio_ssl_fastsend
;
vio
->
viokeepalive
=
vio_ssl_keepalive
;
vio
->
should_retry
=
vio_ssl_should_retry
;
vio
->
was_interrupted
=
vio_was_interrupted
;
vio
->
was_interrupted
=
vio_
ssl_
was_interrupted
;
vio
->
vioclose
=
vio_ssl_close
;
vio
->
peer_addr
=
vio_ssl_peer_addr
;
vio
->
in_addr
=
vio_ssl_in_addr
;
...
...
vio/vio_priv.h
View file @
33c3feda
...
...
@@ -39,6 +39,8 @@ int vio_ssl_fastsend(Vio *vio);
int
vio_ssl_keepalive
(
Vio
*
vio
,
my_bool
onoff
);
/* Whenever we should retry the last read/write operation. */
my_bool
vio_ssl_should_retry
(
Vio
*
vio
);
/* Check that operation was timed out */
my_bool
vio_ssl_was_interrupted
(
Vio
*
vio
);
/* When the workday is over... */
int
vio_ssl_close
(
Vio
*
vio
);
/* Return last error number */
...
...
vio/viosocket.c
View file @
33c3feda
...
...
@@ -197,9 +197,9 @@ vio_should_retry(Vio * vio __attribute__((unused)))
my_bool
vio_was_interrupted
(
Vio
*
vio
__attribute__
((
unused
)))
vio_was_interrupted
(
Vio
*
vio
__attribute__
((
unused
)))
{
int
en
=
socket_errno
;
int
en
=
socket_errno
;
return
(
en
==
SOCKET_EAGAIN
||
en
==
SOCKET_EINTR
||
en
==
SOCKET_EWOULDBLOCK
||
en
==
SOCKET_ETIMEDOUT
);
}
...
...
vio/viossl.c
View file @
33c3feda
...
...
@@ -184,6 +184,15 @@ vio_ssl_should_retry(Vio * vio __attribute__((unused)))
}
my_bool
vio_ssl_was_interrupted
(
Vio
*
vio
__attribute__
((
unused
)))
{
int
en
=
socket_errno
;
return
(
en
==
SOCKET_EAGAIN
||
en
==
SOCKET_EINTR
||
en
==
SOCKET_EWOULDBLOCK
||
en
==
SOCKET_ETIMEDOUT
);
}
int
vio_ssl_close
(
Vio
*
vio
)
{
int
r
;
...
...
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