Diff for /Amaya/amaya/query.c between versions 1.83 and 1.84

version 1.83, 1997/09/10 12:05:33 version 1.84, 1997/09/12 22:26:06
Line 423  static void         Thread_deleteAll () Line 423  static void         Thread_deleteAll ()
         {          {
           cur = Amaya->reqlist;            cur = Amaya->reqlist;
                       
           HTNet_killAll ();  
           /* erase the requests */            /* erase the requests */
           while ((me = (AHTReqContext *) HTList_removeLastObject (cur)))            while ((me = (AHTReqContext *) HTList_removeLastObject (cur)))
             {              {
Line 441  static void         Thread_deleteAll () Line 440  static void         Thread_deleteAll ()
             TtaFreeMemory ((void *) docid_status);              TtaFreeMemory ((void *) docid_status);
                       
         }                       /* if */          }                       /* if */
           
     }      }
 }  }
   
Line 1808  int                 docid; Line 1808  int                 docid;
    AHTReqContext      *me;     AHTReqContext      *me;
    int                 open_requests;     int                 open_requests;
   
      HTNet              *reqNet;
      HTHost             *reqHost;
      int                *reqSock;
   
    if (Amaya)     if (Amaya)
      {       {
   
         cur = Amaya->reqlist;          cur = Amaya->reqlist;
         docid_status = (AHTDocId_Status *) GetDocIdStatus (docid,          docid_status = (AHTDocId_Status *) GetDocIdStatus (docid,
                                                        Amaya->docid_status);                                                         Amaya->docid_status);
   
         /* verify if there are any requests at all associated with docid */          /* verify if there are any requests at all associated with docid */
   
         if (docid_status == (AHTDocId_Status *) NULL)          if (docid_status == (AHTDocId_Status *) NULL)
Line 1844  int                 docid; Line 1846  int                 docid;
                               RequestKillAllXtevents (me);                                RequestKillAllXtevents (me);
 #                 endif _WINDOWS  #                 endif _WINDOWS
                                                               
                                 reqNet = HTRequest_net (me->request);
                                 reqSock = HTNet_socket (reqNet);
                                 reqHost = HTNet_host (reqNet);
   
                               HTRequest_kill (me->request);                                HTRequest_kill (me->request);
                                 HTRequest_setNet (me->request, NULL);
                               if ((me->mode & AMAYA_ASYNC) ||                                if ((me->mode & AMAYA_ASYNC) ||
                                   (me->mode & AMAYA_IASYNC))                                    (me->mode & AMAYA_IASYNC))
                                 {                                  {
                                    AHTReqContext_delete (me);                                     AHTReqContext_delete (me);
                                        
                                 }                                  }
   
                                 if (HTHost_isIdle (reqHost) ) {
                                    HTHost_catchClose (reqSock, NULL, FD_READ);
                                 }
                                        
                                                                       
                               cur = Amaya->reqlist;                                cur = Amaya->reqlist;
                                                               

Removed from v.1.83  
changed lines
  Added in v.1.84


Webmaster