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
796ede64
Commit
796ede64
authored
Nov 14, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
5.2->5.3 merge
parents
3fb60b1d
b5d41c1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
plugin/feedback/url_http.cc
plugin/feedback/url_http.cc
+8
-2
No files found.
plugin/feedback/url_http.cc
View file @
796ede64
...
...
@@ -155,7 +155,7 @@ int Url_http::send(const char* data, size_t data_length)
{
my_socket
fd
=
INVALID_SOCKET
;
char
buf
[
1024
];
uint
len
;
uint
len
=
0
;
addrinfo
*
addrs
,
*
addr
,
filter
=
{
0
,
AF_UNSPEC
,
SOCK_STREAM
,
6
,
0
,
0
,
0
,
0
};
int
res
=
getaddrinfo
(
host
.
str
,
port
.
str
,
&
filter
,
&
addrs
);
...
...
@@ -258,7 +258,13 @@ int Url_http::send(const char* data, size_t data_length)
Extract the first string between <h1>...</h1> tags
and put it as a server reply into the error log.
*/
len
=
vio_read
(
vio
,
(
uchar
*
)
buf
,
sizeof
(
buf
)
-
1
);
for
(;;)
{
size_t
i
=
vio_read
(
vio
,
(
uchar
*
)
buf
+
len
,
sizeof
(
buf
)
-
len
-
1
);
if
((
int
)
i
<=
0
)
break
;
len
+=
i
;
}
if
(
len
&&
len
<
sizeof
(
buf
))
{
char
*
from
;
...
...
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