Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
47d09400
Commit
47d09400
authored
Jun 30, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: use vlc_recv_i11e() and add missing I/O error handling
parent
e72c9ec9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
modules/access/http.c
modules/access/http.c
+6
-1
No files found.
modules/access/http.c
View file @
47d09400
...
...
@@ -31,6 +31,8 @@
# include "config.h"
#endif
#include <errno.h>
#include <vlc_common.h>
#include <vlc_plugin.h>
#include <vlc_access.h>
...
...
@@ -43,6 +45,7 @@
#include <vlc_charset.h>
#include <vlc_input.h>
#include <vlc_http.h>
#include <vlc_interrupt.h>
#ifdef HAVE_ZLIB_H
# include <zlib.h>
...
...
@@ -672,7 +675,9 @@ static int ReadData( access_t *p_access, int *pi_read,
if
(
p_sys
->
p_tls
!=
NULL
)
*
pi_read
=
vlc_tls_Read
(
p_sys
->
p_tls
,
p_buffer
,
i_len
,
false
);
else
*
pi_read
=
net_Read
(
p_access
,
p_sys
->
fd
,
p_buffer
,
i_len
,
false
);
*
pi_read
=
vlc_recv_i11e
(
p_sys
->
fd
,
p_buffer
,
i_len
,
0
);
if
(
*
pi_read
<
0
&&
errno
!=
EINTR
&&
errno
!=
EAGAIN
)
return
VLC_EGENERIC
;
if
(
*
pi_read
<=
0
)
return
VLC_SUCCESS
;
...
...
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