Setting up persistent connections for web service, Limiting simultaneous connections for web service – Apple Mac OS X Server (version 10.2.3 or later) User Manual
Page 364

364
Chapter 8
4
Click Add to add a new mapping, or select a mapping and click Edit, Duplicate, or Delete. (If
you choose Delete, you’ve finished.)
5
Type the file suffix that describes the type of data in files handled by this mapping.
6
Choose a Web server response from the Response pop-up menu. If you choose “Return file
as MIME type,” enter the MIME type you want to return.
7
Click Save.
If you choose a response that is a Common Gateway Interface (CGI) script, make sure you
have enabled CGI execution for your site in the Options pane of the site settings window.
Setting Up Persistent Connections for Web Service
You can set up Web service to respond to multiple requests from a client computer without
closing the connection each time. Repeatedly opening and closing connections isn’t very
efficient and decreases performance.
To set up persistent connections:
1
In Server Settings, click the Internet tab.
2
Click Web and choose Configure Web Service.
3
In the General pane, enter a number in the “Maximum persistent connections” field.
The range for Maximum persistent connections is zero to 9999. If you set the number to
zero, there is no limit to the number of requests allowed per connection. However, the
default setting of 500 provides better performance.
4
Enter a number in the “Connection timeout” field if you want to specify the amount of time
that can pass between requests before the session is disconnected by the Web server.
The range for connection timeout is one to 9999 seconds.
5
Click Save, then restart Web service.
Limiting Simultaneous Connections for Web Service
You can limit the number of simultaneous connections to your Web server. When the
maximum number of connections is reached, new requests receive a message that the server
is busy.
To set the maximum number of connections to your Web server:
1
In Server Settings, click the Internet tab.
2
Click Web and choose Configure Web Service.
3
In the General pane, enter a number in the “Maximum simultaneous connections” field.
LL0395.Book Page 364 Wednesday, November 20, 2002 11:44 AM