Navigation


Changeset 710:e60376cb15e8 in freeDiameter for libfdcore/sctp.c


Ignore:
Timestamp:
Feb 10, 2011, 4:00:53 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/sctp.c

    r706 r710  
    10411041        ret = sendmsg(conn->cc_socket, &mhdr, 0);
    10421042        /* Handle special case of timeout */
    1043         if ((ret < 0) && (errno == EAGAIN)) {
     1043        if ((ret < 0) && ((errno == EAGAIN) || (errno == EINTR))) {
     1044                pthread_testcancel();
    10441045                if (! fd_cnx_teststate(conn, CC_STATUS_CLOSING ))
    10451046                        goto again; /* don't care, just ignore */
     
    10991100        pthread_cleanup_push(free, data);
    11001101        ret = recvmsg(conn->cc_socket, &mhdr, 0);
     1102        pthread_testcancel();
    11011103        pthread_cleanup_pop(0);
    11021104       
    11031105        /* First, handle timeouts (same as fd_cnx_s_recv) */
    1104         if ((ret < 0) && (errno == EAGAIN)) {
     1106        if ((ret < 0) && ((errno == EAGAIN) || (errno == EINTR))) {
    11051107                if (! fd_cnx_teststate(conn, CC_STATUS_CLOSING ))
    11061108                        goto again; /* don't care, just ignore */
Note: See TracChangeset for help on using the changeset viewer.