If the connection with the GTM is dropped, we should ensure that the caller
gets to see the error. This fixes some of the issues noticed during GTM
stop/start tests.
"unexpected response from server; first received character was \"%c\"\n",
id);
conn->inCursor += msgLength;
+ result->gr_status = GTM_RESULT_ERROR;
break;
} /* switch on protocol character */
/* Successfully consumed this message */
else
{
/* Trouble --- report it */
+ result->gr_status = GTM_RESULT_ERROR;
printfGTMPQExpBuffer(&conn->errorMessage,
"message contents do not agree with length in message type \"%c\"\n",
id);