Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
freediameter
Commits
ddebeac9
Commit
ddebeac9
authored
Feb 08, 2010
by
Sebastien Decugis
Browse files
Fix error code returned in case of SO_RCVTIMEO timer reached
parent
6b5e27cf
Changes
2
Hide whitespace changes
Inline
Side-by-side
freeDiameter/cnxctx.c
View file @
ddebeac9
...
...
@@ -516,7 +516,7 @@ ssize_t fd_cnx_s_recv(struct cnxctx * conn, void *buffer, size_t length)
again:
ret
=
recv
(
conn
->
cc_socket
,
buffer
,
length
,
0
);
/* Handle special case of timeout */
if
((
ret
<
0
)
&&
(
errno
==
E
TIMEDOUT
))
{
if
((
ret
<
0
)
&&
(
errno
==
E
AGAIN
))
{
if
(
!
conn
->
cc_closing
)
goto
again
;
/* don't care, just ignore */
if
(
!
timedout
)
{
...
...
freeDiameter/sctp.c
View file @
ddebeac9
...
...
@@ -1130,7 +1130,7 @@ again:
pthread_cleanup_pop
(
0
);
/* First, handle timeouts (same as fd_cnx_s_recv) */
if
((
ret
<
0
)
&&
(
errno
==
E
TIMEDOUT
))
{
if
((
ret
<
0
)
&&
(
errno
==
E
AGAIN
))
{
if
(
!*
cc_closing
)
goto
again
;
/* don't care, just ignore */
if
(
!
timedout
)
{
...
...
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