version 1.164, 1999/01/05 17:19:02
|
version 1.165, 1999/01/07 13:34:42
|
Line 28
|
Line 28
|
#define DEFAULT_MAX_SOCKET 64 |
#define DEFAULT_MAX_SOCKET 64 |
#define DEFAULT_DNS_TIMEOUT 60 |
#define DEFAULT_DNS_TIMEOUT 60 |
#define DEFAULT_PERSIST_TIMEOUT 60L |
#define DEFAULT_PERSIST_TIMEOUT 60L |
#define DEFAULT_NET_EVENT_TIMEOUT 20000 |
#define DEFAULT_NET_EVENT_TIMEOUT 60000 |
|
|
/* Amaya includes */ |
/* Amaya includes */ |
#define THOT_EXPORT extern |
#define THOT_EXPORT extern |
Line 1561 static void Cacheinit ()
|
Line 1561 static void Cacheinit ()
|
boolean cache_locked; |
boolean cache_locked; |
|
|
/* activate cache? */ |
/* activate cache? */ |
strptr = (char *) TtaGetEnvString ("USE_CACHE"); |
strptr = (char *) TtaGetEnvString ("ENABLE_CACHE"); |
if (strptr && *strptr && strcasecmp (strptr, "yes" )) |
if (strptr && *strptr && strcasecmp (strptr, "yes" )) |
cache_enabled = NO; |
cache_enabled = NO; |
else |
else |
Line 2723 int docid;
|
Line 2723 int docid;
|
fprintf (stderr,"StopRequest: killing req %p, url %s, status %d\n", me, me->urlName, me->reqStatus); |
fprintf (stderr,"StopRequest: killing req %p, url %s, status %d\n", me, me->urlName, me->reqStatus); |
#endif /* DEBUG_LIBWWW */ |
#endif /* DEBUG_LIBWWW */ |
|
|
if (me->reqStatus != HT_END) |
if (me->reqStatus != HT_END && me->reqStatus != HT_ABORT) |
{ |
{ |
if ((me->mode & AMAYA_ASYNC) |
if ((me->mode & AMAYA_ASYNC) |
|| (me->mode & AMAYA_IASYNC)) |
|| (me->mode & AMAYA_IASYNC)) |
Line 2731 int docid;
|
Line 2731 int docid;
|
else |
else |
async_flag = FALSE; |
async_flag = FALSE; |
|
|
|
/* change the status to say that the request aborted */ |
|
me->reqStatus = HT_ABORT; |
|
|
/* kill the request, using the appropriate function */ |
/* kill the request, using the appropriate function */ |
if (me->request->net) |
if (me->request->net) |
HTNet_killPipe (me->request->net); |
HTNet_killPipe (me->request->net); |
Line 2743 int docid;
|
Line 2746 int docid;
|
me->context_tcbf); |
me->context_tcbf); |
|
|
if (async_flag) |
if (async_flag) |
/* erase the request context */ |
/* explicitly free the request context for async |
|
requests. The sync requests context is freed by LoopForStop */ |
AHTReqContext_delete (me); |
AHTReqContext_delete (me); |
else |
|
/* just indicate that the request was stopped, the context |
|
will be liberated in the LoopForStop */ |
|
me->reqStatus = HT_END; |
|
} |
} |
cur = Amaya->reqlist; |
cur = Amaya->reqlist; |
} |
} |