VirtualBox

Changeset 31171 in vbox


Ignore:
Timestamp:
Jul 28, 2010 3:26:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64157
Message:

Main/webservice+Installer/solaris: make the max keepalive parameter a command line option and set it higher than the default in the solaris start script

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/smf-vboxwebsrv.sh

    r28800 r31171  
    22# $Id$
    33
    4 # Copyright (C) 2008 Oracle Corporation
     4# Copyright (C) 2008-2010 Oracle Corporation
    55#
    66# This file is part of VirtualBox Open Source Edition (OSE), as
     
    4646        VW_CHECK_INTERVAL=`/usr/bin/svcprop -p config/checkinterval $SMF_FMRI 2>/dev/null`
    4747        [ $? != 0 ] && VW_CHECK_INTERVAL=
     48        VW_KEEPALIVE=`/usr/bin/svcprop -p config/keepalive $SMF_FMRI 2>/dev/null`
     49        [ $? != 0 ] && VW_KEEPALIVE=
    4850
    4951        # Provide sensible defaults
     
    5355        [ -z "$VW_TIMEOUT" ] && VW_TIMEOUT=20
    5456        [ -z "$VW_CHECK_INTERVAL" ] && VW_CHECK_INTERVAL=5
    55         exec su - "$VW_USER" -c "/opt/VirtualBox/vboxwebsrv --host \"$VW_HOST\" --port \"$VW_PORT\" --timeout \"$VW_TIMEOUT\" --check-interval \"$VW_CHECK_INTERVAL\""
     57        [ -z "$VW_KEEPALIVE" ] && VW_KEEPALIVE=1000
     58        exec su - "$VW_USER" -c "/opt/VirtualBox/vboxwebsrv --host \"$VW_HOST\" --port \"$VW_PORT\" --timeout \"$VW_TIMEOUT\" --check-interval \"$VW_CHECK_INTERVAL\" --keepalive \"$VW_KEEPALIVE\""
    5659
    5760        VW_EXIT=$?
  • trunk/src/VBox/Main/webservice/vboxweb.cpp

    r31120 r31171  
    101101unsigned int            g_uBacklog = 100;               // backlog = max queue size for requests
    102102unsigned int            g_cMaxWorkerThreads = 100;      // max. no. of worker threads
     103unsigned int            g_cMaxKeepAlive = 100;          // maximum number of soap requests in one connection
    103104
    104105bool                    g_fVerbose = false;             // be verbose
     
    158159        { "--check-interval",   'i', RTGETOPT_REQ_UINT32 },
    159160        { "--threads",          'T', RTGETOPT_REQ_UINT32 },
     161        { "--keepalive",        'k', RTGETOPT_REQ_UINT32 },
    160162        { "--verbose",          'v', RTGETOPT_REQ_NOTHING },
    161163        { "--logfile",          'F', RTGETOPT_REQ_STRING },
     
    254256        soap_set_omode(m_soap, SOAP_IO_KEEPALIVE);
    255257        soap_set_imode(m_soap, SOAP_IO_KEEPALIVE);
    256         m_soap->max_keep_alive = 100;
     258        m_soap->max_keep_alive = g_cMaxKeepAlive;
    257259
    258260        if (!RT_SUCCESS(RTThreadCreate(&m_pThread,
     
    662664            case 'T':
    663665                g_cMaxWorkerThreads = ValueUnion.u32;
     666            break;
     667
     668            case 'k':
     669                g_cMaxKeepAlive = ValueUnion.u32;
    664670            break;
    665671
Note: See TracChangeset for help on using the changeset viewer.

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