Fixes COUCHDB-504
Fixes COUCHDB-504

Thanks to Bob Dionne for figuring out the underlying cause. Thanks to Benoit for making my initial patch alot cleaner.

This version is basically Benoit's patch with two extra conditions for sending the Keep-Alive header. It must be a HTTP/1.0 connection and there must not be a Connection header already defined.



git-svn-id: c1f8a8ec0b3bb2e99ab3413722f81f687760e79c@816033 13f79535-47bb-0310-9956-ffa450edef68

linearregression/bigcouch,georgemarshall/bigcouch,PerilousApricot/bigcouch,bittorrent/bigcouch,benoitc/couchit_experiment,benoitc/couchit_experiment,kofron/bigcouch,benoitc/bigcouch,Asquera/bigcouch,fkaempfer/couchdb,PerilousApricot/bigcouch,benoitc/couchit_experiment,PerilousApricot/bigcouch,KlausTrainer/bigcouch,cloudant/bigcouch,KlausTrainer/bigcouch,PerilousApricot/bigcouch,davidcoallier/bigcouch,andrejb/cloudant_bigcouch,Gussy/bigcouch,andrejb/cloudant_bigcouch,linearregression/bigcouch,andrejb/cloudant_bigcouch,linearregression/bigcouch,benoitc/bigcouch,KlausTrainer/bigcouch,davidcoallier/bigcouch,Gussy/bigcouch,kofron/bigcouch,linearregression/bigcouch,Gussy/bigcouch,georgemarshall/bigcouch,fkaempfer/couchdb,kofron/bigcouch,cloudant/bigcouch,andrejb/cloudant_bigcouch,benoitc/couchit_experiment,georgemarshall/bigcouch,linearregression/bigcouch,andrejb/cloudant_bigcouch,georgemarshall/bigcouch,cloudant/bigcouch,Asquera/bigcouch,fkaempfer/couchdb,benoitc/couchit_experiment,Asquera/bigcouch,benoitc/bigcouch,benoitc/bigcouch,Gussy/bigcouch,bittorrent/bigcouch,benoitc/bigcouch,davidcoallier/bigcouch,georgemarshall/bigcouch,Gussy/bigcouch,Gussy/bigcouch,Asquera/bigcouch,breezjw/bigcouch,bittorrent/bigcouch,cloudant/bigcouch,Asquera/bigcouch,linearregression/bigcouch,davidcoallier/bigcouch,kofron/bigcouch,KlausTrainer/bigcouch,bittorrent/bigcouch,georgemarshall/bigcouch,bittorrent/bigcouch,breezjw/bigcouch,breezjw/bigcouch,linearregression/bigcouch,breezjw/bigcouch,fkaempfer/couchdb,Asquera/bigcouch,cloudant/bigcouch,KlausTrainer/bigcouch,cloudant/bigcouch,fkaempfer/couchdb,davidcoallier/bigcouch,davidcoallier/bigcouch,PerilousApricot/bigcouch,PerilousApricot/bigcouch,cloudant/bigcouch,fkaempfer/couchdb,kofron/bigcouch,andrejb/cloudant_bigcouch,breezjw/bigcouch,breezjw/bigcouch,KlausTrainer/bigcouch,bittorrent/bigcouch,benoitc/bigcouch,andrejb/cloudant_bigcouch,kofron/bigcouch