IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19789


Ignore:
Timestamp:
Sep 30, 2008, 10:22:33 AM (18 years ago)
Author:
bills
Message:

bump message timeout from 10 to 30 seconds
(replication queue is so large that 'status' commands often time out even
with 30 sec but this performs a bit better than 10 sec)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/multicommand.c

    r18127 r19789  
    33static int server = 0;
    44static int bufferPending = FALSE;
     5
     6#define MSG_TIMEOUT 30.0
    57
    68int getServer () {
     
    9395
    9496          // receive the command exit status
    95           if (ExpectMessage (server, 10.0, &message)) {
     97          if (ExpectMessage (server, MSG_TIMEOUT, &message)) {
    9698            switch (errno) {
    9799              case EPIPE:
     
    108110
    109111          // receive the resulting stderr
    110           if (ExpectMessage (server, 10.0, &message)) {
     112          if (ExpectMessage (server, MSG_TIMEOUT, &message)) {
    111113            switch (errno) {
    112114              case EPIPE:
     
    123125
    124126          // receive the resulting stdout
    125           if (ExpectMessage (server, 10.0, &message)) {
     127          if (ExpectMessage (server, MSG_TIMEOUT, &message)) {
    126128            switch (errno) {
    127129              case EPIPE:
Note: See TracChangeset for help on using the changeset viewer.