Re: Connection timeout

Hi,

Have you tried this:

  ...
  HTRequest request = HTRequest_new();
  HTRequest_setContext(request,  myReq);  
  myReq->timer = HTTimer_new(NULL, timer_callback, (void*)myReq, tm, true,
false);  
   ...

int timer_callback(HTTimer* timer, void * param, HTEventType type) 
{
    t_myReq *myReq = (t_myReq *)inst;
    HTRequest request = myReq->request;
    HTTimer_delete(timer);
    myReq->timer = NULL;

    // To kill the request use:
    /* 
    HTNet *net = HTRequest_net(request);
    HTNet_killPipe(net);
    */
}

/mph

Received on Tuesday, 22 January 2002 13:03:50 UTC