Diff for /Amaya/amaya/query.c between versions 1.202 and 1.203

version 1.202, 1999/09/24 11:29:36 version 1.203, 1999/09/28 13:40:11
Line 1305  HTList             *c; Line 1305  HTList             *c;
   if (c == (HTList *) NULL)     if (c == (HTList *) NULL) 
       return;        return;
       
   lang_list = TtaGetEnvString (TEXT("ACCEPT_LANGUAGES"));    lang_list = TtaGetEnvString ("ACCEPT_LANGUAGES");
   s[2] = EOS;    s[2] = EOS;
   if (lang_list && *lang_list != EOS)    if (lang_list && *lang_list != EOS)
     {      {
Line 1479  static void         AHTProtocolInit (voi Line 1479  static void         AHTProtocolInit (voi
 #endif  #endif
   
    /* initialize pipelining */     /* initialize pipelining */
   strptr = (char *) TtaGetEnvString (TEXT ("ENABLE_PIPELINING"));    strptr = (char *) TtaGetEnvString ("ENABLE_PIPELINING");
   if (strptr && *strptr && strcasecmp (strptr,"yes" ))    if (strptr && *strptr && strcasecmp (strptr,"yes" ))
     HTTP_setConnectionMode (HTTP_11_NO_PIPELINING);      HTTP_setConnectionMode (HTTP_11_NO_PIPELINING);
 }  }
Line 1789  static void Cacheinit () Line 1789  static void Cacheinit ()
 int i;  int i;
   
   /* activate cache? */    /* activate cache? */
   strptr = TtaGetEnvString (TEXT("ENABLE_CACHE"));    strptr = TtaGetEnvString ("ENABLE_CACHE");
   if (strptr && *strptr && ustrcasecmp (strptr, TEXT("yes")))    if (strptr && *strptr && ustrcasecmp (strptr, TEXT("yes")))
     cache_enabled = NO;      cache_enabled = NO;
   else    else
     cache_enabled = YES;      cache_enabled = YES;
   
   /* cache protected documents? */    /* cache protected documents? */
   strptr = TtaGetEnvString (TEXT("CACHE_PROTECTED_DOCS"));    strptr = TtaGetEnvString ("CACHE_PROTECTED_DOCS");
   if (strptr && *strptr && !ustrcasecmp (strptr, TEXT("yes")))    if (strptr && *strptr && !ustrcasecmp (strptr, TEXT("yes")))
     HTCacheMode_setProtected (YES);      HTCacheMode_setProtected (YES);
   else    else
     HTCacheMode_setProtected (NO);      HTCacheMode_setProtected (NO);
   
   /* get the cache dir (or use a default one) */    /* get the cache dir (or use a default one) */
   strptr = TtaGetEnvString (TEXT("CACHE_DIR"));    strptr = TtaGetEnvString ("CACHE_DIR");
   if (strptr && *strptr)     if (strptr && *strptr) 
     {      {
       real_dir = TtaAllocString (ustrlen (strptr) + ustrlen (CACHE_DIR_NAME) + 20);        real_dir = TtaAllocString (ustrlen (strptr) + ustrlen (CACHE_DIR_NAME) + 20);
Line 1837  int i; Line 1837  int i;
   usprintf (cache_dir, TEXT("file:%s"), real_dir);    usprintf (cache_dir, TEXT("file:%s"), real_dir);
   
   /* get the cache size (or use a default one) */    /* get the cache size (or use a default one) */
   strptr = TtaGetEnvString (TEXT("CACHE_SIZE"));    strptr = TtaGetEnvString ("CACHE_SIZE");
   if (strptr && *strptr)     if (strptr && *strptr) 
     cache_size = uctoi (strptr);      cache_size = uctoi (strptr);
   else    else
Line 1956  static void ProxyInit () Line 1956  static void ProxyInit ()
   char*  strptrA;    char*  strptrA;
   
   /* get the proxy settings from the thot.ini file */    /* get the proxy settings from the thot.ini file */
   strptr = TtaGetEnvString (TEXT("HTTP_PROXY"));    strptr = TtaGetEnvString ("HTTP_PROXY");
   if (strptr && *strptr)    if (strptr && *strptr)
     HTProxy_add ("http", WideChar2ISO (strptr));      HTProxy_add ("http", WideChar2ISO (strptr));
   /* get the no_proxy settings from the thot.ini file */    /* get the no_proxy settings from the thot.ini file */
   strptr = TtaGetEnvString (TEXT("NO_PROXY"));    strptr = TtaGetEnvString ("NO_PROXY");
   if (strptr && *strptr)     if (strptr && *strptr) 
     {      {
       str = TtaStrdup (strptr);          /* Get copy we can mutilate */        str = TtaStrdup (strptr);          /* Get copy we can mutilate */
Line 2040  STRING AppVersion; Line 2040  STRING AppVersion;
    HTAA_newModule ("basic", HTBasic_generate, HTBasic_parse, NULL,     HTAA_newModule ("basic", HTBasic_generate, HTBasic_parse, NULL,
                     HTBasic_delete);                      HTBasic_delete);
    /* activate MDA by defaul */     /* activate MDA by defaul */
    strptr = TtaGetEnvString (TEXT("ENABLE_MDA"));     strptr = TtaGetEnvString ("ENABLE_MDA");
    if (!strptr || (strptr && *strptr && ustrcasecmp (strptr, TEXT("no"))))     if (!strptr || (strptr && *strptr && ustrcasecmp (strptr, TEXT("no"))))
      HTAA_newModule ("digest", HTDigest_generate, HTDigest_parse,        HTAA_newModule ("digest", HTDigest_generate, HTDigest_parse, 
                      HTDigest_updateInfo, HTDigest_delete);                       HTDigest_updateInfo, HTDigest_delete);
Line 2184  void                QueryInit () Line 2184  void                QueryInit ()
    /* Setting up different network parameters */     /* Setting up different network parameters */
   
    /* Maximum number of simultaneous open sockets */     /* Maximum number of simultaneous open sockets */
    strptr = TtaGetEnvString (TEXT("MAX_SOCKET"));     strptr = TtaGetEnvString ("MAX_SOCKET");
    if (strptr && *strptr)      if (strptr && *strptr) 
      tmp_i = uctoi (strptr);       tmp_i = uctoi (strptr);
    else     else
Line 2193  void                QueryInit () Line 2193  void                QueryInit ()
   
    /* different network services timeouts */     /* different network services timeouts */
    /* dns timeout */     /* dns timeout */
    strptr = TtaGetEnvString (TEXT("DNS_TIMEOUT"));     strptr = TtaGetEnvString ("DNS_TIMEOUT");
    if (strptr && *strptr)      if (strptr && *strptr) 
      tmp_i = uctoi (strptr);       tmp_i = uctoi (strptr);
    else     else
Line 2201  void                QueryInit () Line 2201  void                QueryInit ()
    HTDNS_setTimeout (tmp_i);     HTDNS_setTimeout (tmp_i);
   
    /* persistent connections timeout */     /* persistent connections timeout */
    strptr = TtaGetEnvString (TEXT("PERSIST_CX_TIMEOUT"));     strptr = TtaGetEnvString ("PERSIST_CX_TIMEOUT");
    if (strptr && *strptr)      if (strptr && *strptr) 
      tmp_l = uctol (strptr);       tmp_l = uctol (strptr);
    else     else
Line 2209  void                QueryInit () Line 2209  void                QueryInit ()
    HTHost_setPersistTimeout (tmp_l);     HTHost_setPersistTimeout (tmp_l);
   
    /* default timeout in ms */     /* default timeout in ms */
    strptr = TtaGetEnvString (TEXT("NET_EVENT_TIMEOUT"));     strptr = TtaGetEnvString ("NET_EVENT_TIMEOUT");
    if (strptr && *strptr)      if (strptr && *strptr) 
      tmp_i = uctoi (strptr);       tmp_i = uctoi (strptr);
    else     else
Line 2828  void               *context_tcbf; Line 2828  void               *context_tcbf;
    ThotBool            lost_update_check = TRUE;     ThotBool            lost_update_check = TRUE;
   
    /* should we protect the PUT against lost updates? */     /* should we protect the PUT against lost updates? */
    tmp = TtaGetEnvString (TEXT("ENABLE_LOST_UPDATE_CHECK"));     tmp = TtaGetEnvString ("ENABLE_LOST_UPDATE_CHECK");
    if (tmp && *tmp && ustrcasecmp (tmp, TEXT("yes")))     if (tmp && *tmp && ustrcasecmp (tmp, TEXT("yes")))
      lost_update_check = FALSE;       lost_update_check = FALSE;
   

Removed from v.1.202  
changed lines
  Added in v.1.203


Webmaster