VirtualBox

Changeset 31107 in vbox


Ignore:
Timestamp:
Jul 26, 2010 11:30:27 AM (14 years ago)
Author:
vboxsync
Message:

Webservice: add HTTP keepalive

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r30976 r31107  
    244244        m_soap = soap_copy(soap);
    245245
     246        /* The soap.max_keep_alive value can be set to the maximum keep-alive calls allowed,
     247         * which is important to avoid a client from holding a thread indefinitely.
     248         * http://www.cs.fsu.edu/~engelen/soapdoc2.html#sec:keepalive
     249         */
     250        soap_set_omode(m_soap, SOAP_IO_KEEPALIVE);
     251        soap_set_imode(m_soap, SOAP_IO_KEEPALIVE);
     252        m_soap->max_keep_alive = 100;
     253
    246254        if (!RT_SUCCESS(RTThreadCreate(&m_pThread,
    247255                                       fntWrapper,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette