Changeset 31171 in vbox
- Timestamp:
- Jul 28, 2010 3:26:54 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64157
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/solaris/smf-vboxwebsrv.sh
r28800 r31171 2 2 # $Id$ 3 3 4 # Copyright (C) 2008 Oracle Corporation4 # Copyright (C) 2008-2010 Oracle Corporation 5 5 # 6 6 # This file is part of VirtualBox Open Source Edition (OSE), as … … 46 46 VW_CHECK_INTERVAL=`/usr/bin/svcprop -p config/checkinterval $SMF_FMRI 2>/dev/null` 47 47 [ $? != 0 ] && VW_CHECK_INTERVAL= 48 VW_KEEPALIVE=`/usr/bin/svcprop -p config/keepalive $SMF_FMRI 2>/dev/null` 49 [ $? != 0 ] && VW_KEEPALIVE= 48 50 49 51 # Provide sensible defaults … … 53 55 [ -z "$VW_TIMEOUT" ] && VW_TIMEOUT=20 54 56 [ -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\"" 56 59 57 60 VW_EXIT=$? -
trunk/src/VBox/Main/webservice/vboxweb.cpp
r31120 r31171 101 101 unsigned int g_uBacklog = 100; // backlog = max queue size for requests 102 102 unsigned int g_cMaxWorkerThreads = 100; // max. no. of worker threads 103 unsigned int g_cMaxKeepAlive = 100; // maximum number of soap requests in one connection 103 104 104 105 bool g_fVerbose = false; // be verbose … … 158 159 { "--check-interval", 'i', RTGETOPT_REQ_UINT32 }, 159 160 { "--threads", 'T', RTGETOPT_REQ_UINT32 }, 161 { "--keepalive", 'k', RTGETOPT_REQ_UINT32 }, 160 162 { "--verbose", 'v', RTGETOPT_REQ_NOTHING }, 161 163 { "--logfile", 'F', RTGETOPT_REQ_STRING }, … … 254 256 soap_set_omode(m_soap, SOAP_IO_KEEPALIVE); 255 257 soap_set_imode(m_soap, SOAP_IO_KEEPALIVE); 256 m_soap->max_keep_alive = 100;258 m_soap->max_keep_alive = g_cMaxKeepAlive; 257 259 258 260 if (!RT_SUCCESS(RTThreadCreate(&m_pThread, … … 662 664 case 'T': 663 665 g_cMaxWorkerThreads = ValueUnion.u32; 666 break; 667 668 case 'k': 669 g_cMaxKeepAlive = ValueUnion.u32; 664 670 break; 665 671
Note:
See TracChangeset
for help on using the changeset viewer.