Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ef9815af
Commit
ef9815af
authored
Mar 24, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-disable v6 only for better handling of
udp://@
on dual-stack systems
parent
5c2c0b8b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
11 deletions
+7
-11
src/network/io.c
src/network/io.c
+7
-11
No files found.
src/network/io.c
View file @
ef9815af
...
...
@@ -97,15 +97,11 @@ int net_Socket (vlc_object_t *p_this, int family, int socktype,
#ifdef IPV6_V6ONLY
/*
* Accepts only IPv6 connections on IPv6 sockets
* (and open an IPv4 socket later as well if needed).
* Only Linux and FreeBSD can map IPv4 connections on IPv6 sockets,
* so this allows for more uniform handling across platforms. Besides,
* it makes sure that IPv4 addresses will be printed as w.x.y.z rather
* than ::ffff:w.x.y.z
* Accepts only IPv6 and IPv4 connections on IPv6 sockets.
* If possible, we should open two sockets, but it is not always possible.
*/
if
(
family
==
AF_INET6
)
setsockopt
(
fd
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
&
(
int
){
1
},
sizeof
(
int
));
setsockopt
(
fd
,
IPPROTO_IPV6
,
IPV6_V6ONLY
,
&
(
int
){
0
},
sizeof
(
int
));
#endif
#if defined (WIN32) || defined (UNDER_CE)
...
...
@@ -277,7 +273,7 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
if
(
p_this
->
b_die
)
{
#if defined(WIN32) || defined(UNDER_CE)
WSASetLastError
(
WSAEINTR
);
WSASetLastError
(
WSAEINTR
);
#else
errno
=
EINTR
;
#endif
...
...
@@ -322,7 +318,7 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
}
else
{
if
(
ufd
[
i
].
revents
&
POLLRDHUP
)
if
(
ufd
[
i
].
revents
&
POLLRDHUP
)
return
0
;
// EOF, read() would yield 0
}
...
...
@@ -350,7 +346,7 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
if
(
n
==
-
1
)
{
#if defined(WIN32) || defined(UNDER_CE)
switch
(
WSAGetLastError
())
switch
(
WSAGetLastError
())
{
case
WSAEWOULDBLOCK
:
/* only happens with vs != NULL (SSL) - not really an error */
...
...
@@ -381,7 +377,7 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
p_buf
+=
n
;
i_buflen
-=
n
;
if
(
n
==
0
||
!
waitall
)
if
((
n
==
0
)
||
!
waitall
)
break
;
}
return
i_total
;
...
...
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