IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10659


Ignore:
Timestamp:
Dec 12, 2006, 10:26:22 AM (20 years ago)
Author:
eugene
Message:

HUNG client should not be killed

Location:
trunk/Ohana/src/opihi/pcontrol
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/pcontrol/CheckBusyJob.c

    r10652 r10659  
    3636
    3737    case PCLIENT_HUNG:
     38      // don't do anything drastic, just keep trying
     39      if (VerboseMode()) gprint (GP_ERR, "client is busy, not responding");
     40      FreeIOBuffer (&buffer);
     41      return (TRUE);
     42
     43# if (0)     
    3844      HarvestHost (host[0].pid);
    3945      // unlink host & job
     
    4450      FreeIOBuffer (&buffer);
    4551      return (TRUE);
     52# endif
    4653
    4754    case PCLIENT_GOOD:
  • trunk/Ohana/src/opihi/pcontrol/CheckDoneHost.c

    r10657 r10659  
    2626
    2727    case PCLIENT_HUNG:
    28       // XXX should this be DONE or DOWN?/
    29       PutHost (host, PCONTROL_HOST_DONE, STACK_BOTTOM);
     28      // don't do anything drastic, just try again later
     29      PutHost (host, PCONTROL_HOST_BUSY, STACK_BOTTOM);
    3030      if (DEBUG || VerboseMode()) gprint (GP_ERR, "host %s is not responding\n", host[0].hostname);
    3131      FreeIOBuffer (&buffer);
  • trunk/Ohana/src/opihi/pcontrol/KillJob.c

    r10652 r10659  
    3030
    3131    case PCLIENT_HUNG:
     32      // don't do anything drastic, just keep trying
     33      if (VerboseMode()) gprint (GP_ERR, "client is busy, not responding");
     34      FreeIOBuffer (&buffer);
     35      return (TRUE);
     36
     37# if (0)
    3238      HarvestHost (host[0].pid);
    3339      // unlink host & job
     
    3844      FreeIOBuffer (&buffer);
    3945      return (TRUE);
     46# endif
    4047
    4148    case PCLIENT_GOOD:
  • trunk/Ohana/src/opihi/pcontrol/ResetJob.c

    r10652 r10659  
    3232    case PCLIENT_HUNG:
    3333      /*** should we consider a HUNG host DOWN? ***/
    34       gprint (GP_ERR, "host %s is not responding\n", host[0].hostname);
     34      gprint (GP_ERR, "host %s is not responding (ResetJob)\n", host[0].hostname);
    3535      FreeIOBuffer (&buffer);
    3636      return (FALSE);
  • trunk/Ohana/src/opihi/pcontrol/StartJob.c

    r10652 r10659  
    3838
    3939    case PCLIENT_HUNG:
     40      // we need the job start to return a valid Job ID,
     41      // give up on jobs which don't get started.
     42      gprint (GP_ERR, "host %s is not responding (StartJob)\n", host[0].hostname);
    4043      if (VerboseMode()) gprint (GP_ERR, "host %s is not responding\n", host[0].hostname);
    4144      goto failure;
Note: See TracChangeset for help on using the changeset viewer.