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
afe94b1c
Commit
afe94b1c
authored
Feb 21, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove confusing debug message (fixes #3319), fetch timeout once
parent
b3e29297
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
src/network/tcp.c
src/network/tcp.c
+5
-9
No files found.
src/network/tcp.c
View file @
afe94b1c
...
...
@@ -146,6 +146,10 @@ int net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
return
-
1
;
}
int
timeout
=
var_InheritInteger
(
p_this
,
"ipv4-timeout"
);
if
(
timeout
<
0
)
timeout
=
-
1
;
for
(
ptr
=
res
;
ptr
!=
NULL
;
ptr
=
ptr
->
ai_next
)
{
int
fd
=
net_Socket
(
p_this
,
ptr
->
ai_family
,
...
...
@@ -158,21 +162,13 @@ int net_Connect( vlc_object_t *p_this, const char *psz_host, int i_port,
if
(
connect
(
fd
,
ptr
->
ai_addr
,
ptr
->
ai_addrlen
)
)
{
int
timeout
,
val
;
int
val
;
if
(
net_errno
!=
EINPROGRESS
&&
net_errno
!=
EINTR
)
{
msg_Err
(
p_this
,
"connection failed: %m"
);
goto
next_ai
;
}
msg_Dbg
(
p_this
,
"connection: %m"
);
timeout
=
var_CreateGetInteger
(
p_this
,
"ipv4-timeout"
);
if
(
timeout
<
0
)
{
msg_Err
(
p_this
,
"invalid negative value for ipv4-timeout"
);
timeout
=
0
;
}
struct
pollfd
ufd
[
2
]
=
{
{
.
fd
=
fd
,
.
events
=
POLLOUT
},
...
...
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