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
8b492795
Commit
8b492795
authored
Dec 26, 2004
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixes HTTP access EOF detection
parent
626d0aed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
modules/access/http.c
modules/access/http.c
+7
-1
No files found.
modules/access/http.c
View file @
8b492795
...
@@ -549,6 +549,12 @@ static int Read( access_t *p_access, uint8_t *p_buffer, int i_len )
...
@@ -549,6 +549,12 @@ static int Read( access_t *p_access, uint8_t *p_buffer, int i_len )
}
}
else
if
(
i_read
==
0
)
else
if
(
i_read
==
0
)
{
{
/*
* I very much doubt that this will work.
* If i_read == 0, the connection *IS* dead, so the only
* sensible thing to do is Disconnect() and then retry.
* Otherwise, I got recv() completely wrong. -- Courmisch
*/
if
(
p_sys
->
b_continuous
)
if
(
p_sys
->
b_continuous
)
{
{
Request
(
p_access
,
0
);
Request
(
p_access
,
0
);
...
@@ -556,10 +562,10 @@ static int Read( access_t *p_access, uint8_t *p_buffer, int i_len )
...
@@ -556,10 +562,10 @@ static int Read( access_t *p_access, uint8_t *p_buffer, int i_len )
i_read
=
Read
(
p_access
,
p_buffer
,
i_len
);
i_read
=
Read
(
p_access
,
p_buffer
,
i_len
);
p_sys
->
b_continuous
=
VLC_TRUE
;
p_sys
->
b_continuous
=
VLC_TRUE
;
}
}
Disconnect
(
p_access
);
if
(
p_sys
->
b_reconnect
)
if
(
p_sys
->
b_reconnect
)
{
{
msg_Dbg
(
p_access
,
"got disconnected, trying to reconnect"
);
msg_Dbg
(
p_access
,
"got disconnected, trying to reconnect"
);
Disconnect
(
p_access
);
if
(
Connect
(
p_access
,
p_access
->
info
.
i_pos
)
)
if
(
Connect
(
p_access
,
p_access
->
info
.
i_pos
)
)
{
{
msg_Dbg
(
p_access
,
"reconnection failed"
);
msg_Dbg
(
p_access
,
"reconnection failed"
);
...
...
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