Add a configurable idle timeout to stunnel

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
SCTX-1649: Set SO_KEEPALIVE on server sockets

This ensures that a TCP connection is cleaned up on the server, when
the connection is closed on the client without the server knowing (for
example, if a FIN packet is not sent or went missing).

This does not affect idle connections, or long-running
XenAPI calls.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>

Conflicts:
	scripts/init.d-xapissl
Merge pull request #1665 from ravippandey/Snowball/HFX-1147

[Snowball/HFX-1147] Add a configurable idle timeout to stunnel
Merge pull request #1667 from ravippandey/Snowball/HFX-1150

[Snowball/HFX-1150] SCTX-1649: Set SO_KEEPALIVE on server sockets
SCTX-1473: Unable to start VM by VM_REQUIRES_GPU. Multiple PCI consumed
by a single VM.
The GPU code in the start_paused function selects a GPU to be passed
through during a VM start. This does not take into account the fact that
xapi has already taken care of the PCI devices attached to the VM before
reboot.
Hence during a VM reboot the VM will get assigned a different PCI device
other than the one it was holding prior to the reboot.
Signed-off-by: Akshay <akshay.ramani@citrix.com>
Merge pull request #1671 from akshayramani/HFX-1007

SCTX-1473 [HFX-1077]: Unable to start VM by VM_REQUIRES_GPU. Multiple PCI consumed
Revert "CA-112880: Fix race condition writing memory-actual"

This reverts commit f0f94eb299e90848474c9cbb85ae30e570fa16fc.
Merge pull request #1682 from ravippandey/revertedbuild

Revert "CA-112880: Fix race condition writing memory-actual"
Revert "Revert "CA-112880: Fix race condition writing memory-actual""

This reverts commit 14a1f16e0a26305f7f5211d5aeb102b8515eec49.
CA-112880: Always update RRD sources

Before this change the update_named call was only happening when values had
been changed as a result of commit f0f94eb introducing an if which affected the
semantics.

This should fix that.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #1683 from simonjbeaumont/ca-112880-fix-fix

[SANIBEL] HFX-1030: Fix wrong memory display (corrected)