Persistent Connections

From: Jesus Cea Avion <jcea@dont-contact.us>
Date: Fri, 30 Jun 2000 16:51:44 +0200

Today I was trying to replicate a problem in Squid (Squid/2.3.STABLE2)
when I observed that Squid doesn´t use persistent connections (checked
manually vía telnet and "connection: keep-alive" and "proxy-connection:
keep-alive" headers).

It was very strange, because previous versions supported persistent
connects.

Digging into the code I saw that the implementation is gated thru the
variables "Config.onoff.client_pconns" and "Config.onoff.server_pconns".
Nevertheless those variables ARE NEVER SET in the code.

Any reason for that?.

I do the following change to restore persistent connections support. It
seems to run fine in the last two hours.

Any idea?.

>>>>>
Index: cache_cf.c
===================================================================
RCS file: /opt/src/cvsroot/squid/src/cache_cf.c,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 cache_cf.c
*** cache_cf.c 2000/03/06 13:30:14 1.1.1.3
--- cache_cf.c 2000/06/30 14:00:28
***************
*** 359,364 ****
--- 359,370 ----
      }
      if (aclPurgeMethodInUse(Config.accessList.http))
        Config2.onoff.enable_purge = 1;
+
+ /*
+ ** MIO
+ */
+ Config.onoff.client_pconns=1;
+ Config.onoff.server_pconns=1;
  }
  
  /* Parse a time specification from the config file. Store the
<<<<<

-- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea@argo.es http://www.argo.es/~jcea/ _/_/    _/_/  _/_/    _/_/  _/_/
                                      _/_/    _/_/          _/_/_/_/_/
PGP Key Available at KeyServ   _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
Received on Fri Jun 30 2000 - 08:56:59 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:54:15 MST