Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
bb309602
Commit
bb309602
authored
Nov 02, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* httpd: Do not close the connection on timeout for rtsp.
(Make quicktime happy)
parent
cdcdb7dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/misc/httpd.c
src/misc/httpd.c
+7
-2
No files found.
src/misc/httpd.c
View file @
bb309602
...
...
@@ -1435,7 +1435,7 @@ static void httpd_ClientInit( httpd_client_t *cl )
{
cl
->
i_state
=
HTTPD_CLIENT_RECEIVING
;
cl
->
i_activity_date
=
mdate
();
cl
->
i_activity_timeout
=
50000000
;
cl
->
i_activity_timeout
=
I64C
(
10000000
)
;
cl
->
i_buffer_size
=
10000
;
cl
->
i_buffer
=
0
;
cl
->
p_buffer
=
malloc
(
cl
->
i_buffer_size
);
...
...
@@ -1843,6 +1843,10 @@ static void httpd_ClientRecv( httpd_client_t *cl )
}
cl
->
i_activity_date
=
mdate
();
/* XXX: for QT I have to disable timeout. Try to find why */
if
(
cl
->
query
.
i_proto
==
HTTPD_PROTO_RTSP
)
cl
->
i_activity_timeout
=
0
;
/* Debugging only */
if
(
cl
->
i_state
==
HTTPD_CLIENT_RECEIVE_DONE
)
{
...
...
@@ -2004,7 +2008,8 @@ static void httpd_HostThread( httpd_host_t *host )
if
(
cl
->
i_ref
<
0
||
(
cl
->
i_ref
==
0
&&
(
cl
->
i_state
==
HTTPD_CLIENT_DEAD
||
cl
->
i_activity_date
+
cl
->
i_activity_timeout
<
mdate
()
)
)
)
(
cl
->
i_activity_timeout
>
0
&&
cl
->
i_activity_date
+
cl
->
i_activity_timeout
<
mdate
())
)
)
)
{
char
*
ip
;
...
...
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