IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15864


Ignore:
Timestamp:
Dec 16, 2007, 12:21:38 PM (18 years ago)
Author:
eugene
Message:

increase setselect timeout, check for no valid detrend data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/detrend/pmDetrendDB.c

    r15812 r15864  
    266266        goto failure;
    267267    }
    268     status = psIOBufferReadEmpty (buffer, 100, pipe->fd_stdout);
     268   
     269    // timeout somewhat longer than 2sec.  this could still be too short....
     270    status = psIOBufferReadEmpty (buffer, 2000, pipe->fd_stdout);
    269271    if (!status) {
    270272        psError (PS_ERR_IO, false, "detselect is not responding");
     
    278280
    279281    psTrace("psModules.detrend", 5, "got answer: %s\n", buffer->data);
     282
     283    if (!buffer->n) {
     284        psLogMsg ("psModule.detrend", PS_LOG_ERROR, "detselect response (%d bytes):\n %s\n", buffer->n, buffer->data);
     285        psError(PS_ERR_IO, true, "no matching detrend data in database\n");
     286        goto failure;
     287    }
    280288
    281289    psMetadata *answer = psMetadataConfigParse (NULL, &nFail, buffer->data, false);
Note: See TracChangeset for help on using the changeset viewer.