Eventlet green threads not released back to pool
Eventlet green threads not released back to pool

Presently, the wsgi server allows persist connections hence even after
the response is sent to the client, it doesn't close the client socket
connection.
Because of this problem, the green thread is not released back to the pool.

In order to close the client socket connection explicitly after the
response is sent and read successfully by the client, you simply have to
set keepalive to False when you create a wsgi server.

Add a parameter to take advantage of the new(ish) eventlet socket timeout
behaviour. Allows closing idle client connections after a period of
time, eg:

$ time nc localhost 8776
real    1m0.063s
Setting 'client_socket_timeout = 0' means do not timeout.

DocImpact:
Added wsgi_keep_alive option (default=True).
Added client_socket_timeout option (default=900).
SecurityImpact

Change-Id: I303d87addeed8b103eeb26dbcc48e3acce06ee6a
Closes-Bug: #1361360

gonzolino/heat,cwolferh/heat-scratch,jasondunsmore/heat,rh-s/heat,srznew/heat,steveb/heat,cryptickp/heat,cwolferh/heat-scratch,noironetworks/heat,jasondunsmore/heat,takeshineshiro/heat,srznew/heat,dragorosson/heat,openstack/heat,noironetworks/heat,pratikmallya/heat,dims/heat,dims/heat,gonzolino/heat,dragorosson/heat,rh-s/heat,openstack/heat,maestro-hybrid-cloud/heat,steveb/heat,cryptickp/heat,maestro-hybrid-cloud/heat,miguelgrinberg/heat,miguelgrinberg/heat,takeshineshiro/heat,pratikmallya/heat