Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3ed6a201
Commit
3ed6a201
authored
Oct 31, 2006
by
Rob Shearman
Committed by
Alexandre Julliard
Oct 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Improve the debug messages for failures in rpcrt4_ip_tcp_open.
parent
828c733f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
rpc_transport.c
dlls/rpcrt4/rpc_transport.c
+6
-5
No files found.
dlls/rpcrt4/rpc_transport.c
View file @
3ed6a201
...
...
@@ -596,7 +596,8 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
ret
=
getaddrinfo
(
Connection
->
NetworkAddr
,
Connection
->
Endpoint
,
&
hints
,
&
ai
);
if
(
ret
)
{
ERR
(
"getaddrinfo failed: %s
\n
"
,
gai_strerror
(
ret
));
ERR
(
"getaddrinfo for %s:%s failed: %s
\n
"
,
Connection
->
NetworkAddr
,
Connection
->
Endpoint
,
gai_strerror
(
ret
));
return
RPC_S_SERVER_UNAVAILABLE
;
}
...
...
@@ -615,7 +616,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
sock
=
socket
(
ai_cur
->
ai_family
,
ai_cur
->
ai_socktype
,
ai_cur
->
ai_protocol
);
if
(
sock
<
0
)
{
WARN
(
"socket() failed
\n
"
);
WARN
(
"socket() failed
: %s
\n
"
,
strerror
(
errno
)
);
continue
;
}
...
...
@@ -624,14 +625,14 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
ret
=
bind
(
sock
,
ai_cur
->
ai_addr
,
ai_cur
->
ai_addrlen
);
if
(
ret
<
0
)
{
WARN
(
"bind failed
, error %d
\n
"
,
ret
);
WARN
(
"bind failed
: %s
\n
"
,
strerror
(
errno
)
);
close
(
sock
);
continue
;
}
ret
=
listen
(
sock
,
10
);
if
(
ret
<
0
)
{
WARN
(
"listen failed
, error %d
\n
"
,
ret
);
WARN
(
"listen failed
: %s
\n
"
,
strerror
(
errno
)
);
close
(
sock
);
continue
;
}
...
...
@@ -652,7 +653,7 @@ static RPC_STATUS rpcrt4_ncacn_ip_tcp_open(RpcConnection* Connection)
{
if
(
0
>
connect
(
sock
,
ai_cur
->
ai_addr
,
ai_cur
->
ai_addrlen
))
{
WARN
(
"connect() failed
\n
"
);
WARN
(
"connect() failed
: %s
\n
"
,
strerror
(
errno
)
);
close
(
sock
);
continue
;
}
...
...
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