Hello,<br><br>The attached patch adds HTTP keep-alive support to vboxwebsrv.<br><br>When working on a web interface for VirtualBox, I found a lot of sockets on the vboxwebsrv end are left in TIME_WAIT for quite a while. This takes up system resources and can cause vboxwebsrv to use all of its allotted open files on *nix systems. This is not "wrong," but can be somewhat alleviated. With this patch I went from hundreds of connections left in TIME_WAIT to 0.<br>
<br>By default, each object property accessed by a web service is a separate TCP connection to vboxwebsrv. When obtaining.. say .. a list of VMs and their properties, this is a lot of connections. With HTTP keep-alive enabled in gSOAP, all SOAP requests go through the same, existing HTTP connection. This keeps the amount of socket connections to a minimum.<br>
<br>In accordance with VirtualBox's contributor information: The attached patch is submitted under the MIT license.<br><br>Thank you for your time.<br>