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
8bd86352
Commit
8bd86352
authored
Mar 03, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix error code when server is overloaded
parent
e2afd14a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/misc/rtsp.c
modules/misc/rtsp.c
+2
-4
No files found.
modules/misc/rtsp.c
View file @
8bd86352
...
...
@@ -701,7 +701,7 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
if
(
(
p_vod
->
p_sys
->
i_throtle_users
>
0
)
&&
(
p_vod
->
p_sys
->
i_connections
>=
p_vod
->
p_sys
->
i_throtle_users
)
)
{
answer
->
i_status
=
50
0
;
// FIXME: GET THE RIGHT ERROR STATUS
answer
->
i_status
=
50
3
;
answer
->
psz_status
=
strdup
(
"Too many connections"
);
answer
->
i_body
=
0
;
answer
->
p_body
=
NULL
;
...
...
@@ -715,7 +715,6 @@ static int RtspCallback( httpd_callback_sys_t *p_args, httpd_client_t *cl,
p_rtsp
=
RtspClientGet
(
p_media
,
psz_session
);
if
(
!
p_rtsp
)
{
/* FIXME right error code */
answer
->
i_status
=
454
;
answer
->
psz_status
=
strdup
(
"Unknown session id"
);
answer
->
i_body
=
0
;
...
...
@@ -959,7 +958,7 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
if
(
(
p_vod
->
p_sys
->
i_throtle_users
>
0
)
&&
(
p_vod
->
p_sys
->
i_connections
>=
p_vod
->
p_sys
->
i_throtle_users
)
)
{
answer
->
i_status
=
50
0
;
// FIXME: GET THE RIGHT ERROR STATUS
answer
->
i_status
=
50
3
;
answer
->
psz_status
=
strdup
(
"Too many connections"
);
answer
->
i_body
=
0
;
answer
->
p_body
=
NULL
;
...
...
@@ -973,7 +972,6 @@ static int RtspCallbackES( httpd_callback_sys_t *p_args, httpd_client_t *cl,
p_rtsp
=
RtspClientGet
(
p_media
,
psz_session
);
if
(
!
p_rtsp
)
{
/* FIXME right error code */
answer
->
i_status
=
454
;
answer
->
psz_status
=
strdup
(
"Unknown session id"
);
answer
->
i_body
=
0
;
...
...
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