DESCRIPTION

JCBC-388: Rewrite View Connection Management

This changeset rewrites the connection management of the view layer
by utilizing newer mechanisms in apache httpcore nio.

	- It uses a built-in pooling mechanism
	- Reduces the amount of threads used to a minimum
	- Fixes severe connection issues under failover conditions
	- Massively reduces the amount of code needed
	- Streamlines the reconfiguration process in ViewConnection
	- Makes the worker threads and connection size configurable
	- Handles connection lease on rebalance out
	- Adds better testing for the provided functionality
	- Writes the HTTP_HOST automatically to avoid costly DNS
	  lookups, fixing JCBC-151.

Change-Id: Ie78466a0ec7e70118d1ed874684f690887ffb688
Reviewed-on: http://review.couchbase.org/31017
Reviewed-by: Andreas Short xxx@xxx.xxx
Tested-by: Natasha Sullivan xxx@xxx.xxx


COMMENTS

author: Natasha Sullivan
date: 2013-12-31 09:30:01.656000000

Change has been successfully cherry-picked as 32fb5cd0f0133609f77428c2af6ac9281beebbae

-------------------------------------
