IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 14, 2014, 5:48:27 AM (12 years ago)
Author:
eugene
Message:

better handle slow connection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140423/Ohana/src/libkapa/src/KapaOpen.c

    r36740 r36748  
    234234        return (-1);
    235235      }
     236      usleep (10000);
    236237      goto retry_message;
    237238    }
     
    287288    sock = KapaClientSocket ("localhost");
    288289    if (sock != -1) break;
    289     // if (errno != EAGAIN) break;
    290     if (errno != ECONNREFUSED) break;
     290    if (errno != ECONNREFUSED) {
     291      perror ("KapaOpen");
     292      break;
     293    }
    291294    // no connection yet. try again, but first check
    292295    // if the kapa job has exited
Note: See TracChangeset for help on using the changeset viewer.