Hi,

To do a workaround for this problem, I want to retry the request when the 
response has no ID.
Here is what I want to do, but I don't know what to do with the current 
connection.
The retry is to do against the same instance.

In transaction.c, function _runRequest, line 621:

      /* Validate the ID */
      if (idString && resp)
      {
         const char *respID = st_valueFor(resp->headers, REQUEST_ID_HEADER);
         if (respID != NULL)
         {
            if (strcmp(respID, idString) != 0)
            {
               WOLog(WO_ERR, "Got response with wrong ID! Dumping response. 
request ID = %s, response ID = %s", idString, respID);
               /* note this will cause the connection to be closed below */
               resp_free(resp);
               resp = NULL;
            } else
               st_removeKey(resp->headers, REQUEST_ID_HEADER);
         } else
         {
            _WOInstance *inst = ac_lockInstance(instHandle);

            if (inst)
            {
               ac_cycleInstance(inst, c->generation);
               ac_unlockInstance(instHandle);
            }
 
            retryRequest++;
            resp_free(reps);
            resp = NULL;
            tr_close(c, instHandle, 0); // Do I need to keep the connection ?
            WOLog(WO_ERR, "Got response with no ID, retrying request.");
            continue;
         }
      }


Thanks for the help,

Stéphan

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to