[vbox-dev] vboxweb.cpp patch for HTTP keep-alive
achim.hasenmueller at oracle.com
Mon Jul 26 06:47:44 PDT 2010
Applied. Performance of phpVirtualBox is much better now. The fix will be in the upcoming 3.2.8 maintenance release.
Thanks for the patch!
On Jul 23, 2010, at 22:38 , Ian Moore wrote:
> The attached patch adds HTTP keep-alive support to vboxwebsrv.
> 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.
> 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.
> In accordance with VirtualBox's contributor information: The attached patch is submitted under the MIT license.
> Thank you for your time.
> vbox-dev mailing list
> vbox-dev at virtualbox.org
More information about the vbox-dev