Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
feef7142
Commit
feef7142
authored
Apr 28, 2006
by
Rémi Denis-Courmont
Browse files
Only check FD_SETSIZE limit on POSIX OSes.
parent
81ced014
Changes
1
Show whitespace changes
Inline
Side-by-side
src/network/httpd.c
View file @
feef7142
...
...
@@ -2435,13 +2435,7 @@ static void httpd_HostThread( httpd_host_t *host )
socklen_t
i_sock_size
=
sizeof
(
struct
sockaddr_storage
);
struct
sockaddr_storage
sock
;
// FIXME: use net_Accept()
fd
=
accept
(
fd
,
(
struct
sockaddr
*
)
&
sock
,
&
i_sock_size
);
if
(
fd
>=
FD_SETSIZE
)
{
net_Close
(
fd
);
fd
=
-
1
;
}
if
(
fd
>=
0
)
{
...
...
@@ -2455,8 +2449,13 @@ static void httpd_HostThread( httpd_host_t *host )
}
#else
fcntl
(
fd
,
F_SETFL
,
O_NONBLOCK
);
if
(
fd
>=
FD_SETSIZE
)
{
net_Close
(
fd
);
fd
=
-
1
;
}
else
#endif
if
(
p_tls
!=
NULL
)
{
switch
(
tls_ServerSessionHandshake
(
p_tls
,
fd
)
)
...
...
Write
Preview
Supports
Markdown
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