Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
c887fde7
Commit
c887fde7
authored
Oct 01, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup previous commit
parent
e8d03d14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
src/network/httpd.c
src/network/httpd.c
+19
-11
No files found.
src/network/httpd.c
View file @
c887fde7
...
...
@@ -1062,6 +1062,14 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname,
if
(
host
==
NULL
)
goto
error
;
vlc_object_lock
(
host
);
if
(
vlc_object_waitpipe
(
host
)
==
-
1
)
{
vlc_object_unlock
(
host
);
goto
error
;
}
vlc_object_unlock
(
host
);
host
->
httpd
=
httpd
;
vlc_mutex_init
(
httpd
,
&
host
->
lock
);
host
->
i_ref
=
1
;
...
...
@@ -2015,8 +2023,13 @@ static void httpd_HostThread( httpd_host_t *host )
tls_session_t
*
p_tls
=
NULL
;
counter_t
*
p_total_counter
=
stats_CounterCreate
(
host
,
VLC_VAR_INTEGER
,
STATS_COUNTER
);
counter_t
*
p_active_counter
=
stats_CounterCreate
(
host
,
VLC_VAR_INTEGER
,
STATS_COUNTER
);
int
evfd
;
vlc_bool_t
b_die
=
VLC_FALSE
;
vlc_object_lock
(
host
);
evfd
=
vlc_object_waitpipe
(
host
);
vlc_object_unlock
(
host
);
while
(
!
b_die
)
{
if
(
host
->
i_url
<=
0
)
...
...
@@ -2414,18 +2427,13 @@ static void httpd_HostThread( httpd_host_t *host )
else
b_low_delay
=
VLC_TRUE
;
}
vlc_object_lock
(
host
);
int
evfd
=
ufd
[
nfd
].
fd
=
vlc_object_waitpipe
(
host
);
if
(
ufd
[
nfd
].
fd
!=
-
1
)
{
ufd
[
nfd
].
events
=
POLLIN
;
ufd
[
nfd
].
revents
=
0
;
nfd
++
;
}
vlc_object_unlock
(
host
);
vlc_mutex_unlock
(
&
host
->
lock
);
ufd
[
nfd
].
fd
=
evfd
;
ufd
[
nfd
].
events
=
POLLIN
;
ufd
[
nfd
].
revents
=
0
;
nfd
++
;
/* we will wait 20ms (not too big) if HTTPD_CLIENT_WAITING */
switch
(
poll
(
ufd
,
nfd
,
b_low_delay
?
20
:
-
1
)
)
{
...
...
@@ -2441,7 +2449,7 @@ static void httpd_HostThread( httpd_host_t *host )
}
vlc_object_lock
(
host
);
if
(
(
evfd
!=
-
1
)
&&
(
ufd
[
nfd
-
1
].
revents
)
)
if
(
ufd
[
nfd
-
1
].
revents
)
b_die
=
vlc_object_wait
(
host
);
vlc_object_unlock
(
host
);
...
...
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