Re: How to stop the event loop?

So then I assume a better way to code an AFTER filter to stop the event
loop is:

     static int endRequest(HTRequest* req, HTResponse* res,
                         void* param, int status) {
          if (HTNet_isIdle())
               HTEventList_stopLoop();
          return HT_OK;
     }

In this case, will the AFTER filter be called more than once or should I
return a value other than HT_OK if I want the AFTER filter to be called
again?

>Btw, you can register your after filter as a global filter which may be
>easier if you are using it for all requests.

I specifically didn't do this because I didn't know what would happen when
the AFTER filter was called on GETs (which don't require an event loop -
correct?). What does happen?

Received on Monday, 14 December 1998 17:43:11 UTC