Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
feef7142
Commit
feef7142
authored
Apr 28, 2006
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only check FD_SETSIZE limit on POSIX OSes.
parent
81ced014
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
src/network/httpd.c
src/network/httpd.c
+6
-7
No files found.
src/network/httpd.c
View file @
feef7142
...
@@ -2435,13 +2435,7 @@ static void httpd_HostThread( httpd_host_t *host )
...
@@ -2435,13 +2435,7 @@ static void httpd_HostThread( httpd_host_t *host )
socklen_t
i_sock_size
=
sizeof
(
struct
sockaddr_storage
);
socklen_t
i_sock_size
=
sizeof
(
struct
sockaddr_storage
);
struct
sockaddr_storage
sock
;
struct
sockaddr_storage
sock
;
// FIXME: use net_Accept()
fd
=
accept
(
fd
,
(
struct
sockaddr
*
)
&
sock
,
&
i_sock_size
);
fd
=
accept
(
fd
,
(
struct
sockaddr
*
)
&
sock
,
&
i_sock_size
);
if
(
fd
>=
FD_SETSIZE
)
{
net_Close
(
fd
);
fd
=
-
1
;
}
if
(
fd
>=
0
)
if
(
fd
>=
0
)
{
{
...
@@ -2455,8 +2449,13 @@ static void httpd_HostThread( httpd_host_t *host )
...
@@ -2455,8 +2449,13 @@ static void httpd_HostThread( httpd_host_t *host )
}
}
#else
#else
fcntl
(
fd
,
F_SETFL
,
O_NONBLOCK
);
fcntl
(
fd
,
F_SETFL
,
O_NONBLOCK
);
if
(
fd
>=
FD_SETSIZE
)
{
net_Close
(
fd
);
fd
=
-
1
;
}
else
#endif
#endif
if
(
p_tls
!=
NULL
)
if
(
p_tls
!=
NULL
)
{
{
switch
(
tls_ServerSessionHandshake
(
p_tls
,
fd
)
)
switch
(
tls_ServerSessionHandshake
(
p_tls
,
fd
)
)
...
...
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