Mercurial > hg > freeDiameter
changeset 196:bc530e9dae04
Fix error code returned in case of SO_RCVTIMEO timer reached
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 08 Feb 2010 18:10:04 +0900 |
parents | 73f73ac55725 |
children | 6a033f90d8ea |
files | freeDiameter/cnxctx.c freeDiameter/sctp.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/freeDiameter/cnxctx.c Mon Feb 08 17:54:15 2010 +0900 +++ b/freeDiameter/cnxctx.c Mon Feb 08 18:10:04 2010 +0900 @@ -516,7 +516,7 @@ again: ret = recv(conn->cc_socket, buffer, length, 0); /* Handle special case of timeout */ - if ((ret < 0) && (errno == ETIMEDOUT)) { + if ((ret < 0) && (errno == EAGAIN)) { if (!conn->cc_closing) goto again; /* don't care, just ignore */ if (!timedout) {
--- a/freeDiameter/sctp.c Mon Feb 08 17:54:15 2010 +0900 +++ b/freeDiameter/sctp.c Mon Feb 08 18:10:04 2010 +0900 @@ -1130,7 +1130,7 @@ pthread_cleanup_pop(0); /* First, handle timeouts (same as fd_cnx_s_recv) */ - if ((ret < 0) && (errno == ETIMEDOUT)) { + if ((ret < 0) && (errno == EAGAIN)) { if (!*cc_closing) goto again; /* don't care, just ignore */ if (!timedout) {