Fix attribute type checking
[yazpp-moved-to-github.git] / etc / voyager.xml
1 <?xml version="1.0"?>
2 <!-- $Id: voyager.xml,v 1.1 2003-10-24 10:21:23 adam Exp $ -->
3 <proxy>
4   <!-- define default target and name it voyager -->
5   <target default="1" name="voyager">
6     <!-- all backend addresses as seen from this proxy .. -->
7     <url>z3950.loc.gov:7090</url>
8     <url>z3950.loc.gov:7094</url>
9
10     <!-- set session timeout between proxy and backend target -->
11     <target-timeout>300</target-timeout>
12
13     <!-- set session timeout between client and proxy.
14     Should be lower than target-timeout -->
15     <client-timeout>180</client-timeout>
16
17     <!-- if either bandwidth or pdu limit is reached the session is no
18     longer kept alive -->
19     <keepalive>
20       <bandwidth>500000</bandwidth>
21       <pdu>500</pdu>
22     </keepalive>
23
24     <!-- client limits .. -->
25     <limit>
26       <bandwidth>200000</bandwidth>
27       <pdu>31</pdu>
28       <retrieve>20</retrieve>
29     </limit>
30
31     <!-- use attributes -->
32     <attribute type="1" value="1-11,13-1010,1013-1023,1025-1030"/>
33     <attribute type="1" value="*" error="114"/>
34
35     <!-- relation attributes -->
36     <attribute type="2" value="1,2,3,4,5,6"/>
37     <attribute type="2" value="*" error="117"/>
38     
39     <!-- position attributes -->
40     <attribute type="3" value="1,2,3"/>
41     <attribute type="3" value="*" error="119"/>
42
43     <!-- structure attributes -->
44     <attribute type="4" value="1,2,3,4,5,6"/>
45     <attribute type="4" value="*" error="118"/>
46
47     <!-- truncation attributes -->
48     <attribute type="5" value="1,100"/>
49     <attribute type="5" value="*" error="120"/>
50
51     <!-- completeness attributes -->
52     <attribute type="6" value="1,2,3"/>
53     <attribute type="6" value="*" error="122"/>
54
55     <!-- other types -->
56     <attribute type="*" value="*" error="113"/>
57
58     <!-- list allowed record syntaxes; reject all others at the end -->
59     <syntax type="opac"/>
60     <syntax type="usmarc"/>
61     <syntax type="none"/>
62     <syntax type="xml" marcxml="1"/>
63     <syntax type="*" error="238"/>
64
65     <!-- keep this number of spare sessions for future sessions -->
66     <preinit>2</preinit>
67   </target>
68
69   <!-- maximum number of client sessions. Remember to allow for
70      at least max-clients*2+5 sockets. Use 'ulimit -n 1040' on bash -->
71   <max-clients>500</max-clients>
72   
73   <!-- what we log. Allowed tokens: client-apdu, server-apdu,
74   client-requests, server-requests -->
75   <log>client-requests server-requests</log>
76 </proxy>