rev11299 avoided 000 status, but ignores the error cases and always sends
200 success.
TODO:
Proper handling of the error cases to allow peer failovers is now possible
but not included in the scope of this patch.
{
TunnelStateData *tunnelState = static_cast<TunnelStateData *>(data);
debugs(26, 3, HERE << "FD " << fd << " tunnelState=" << tunnelState);
- *tunnelState->status_ptr = HTTP_OK;
+ if (flag == COMM_OK)
+ *tunnelState->status_ptr = HTTP_OK;
+ else
+ *tunnelState->status_ptr = HTTP_INTERNAL_SERVER_ERROR;
tunnelConnectedWriteDone(fd, buf, size, flag, xerrno, data);
}