Log request number. More configurable keepalive with pdu/bw limits.
[yazpp-moved-to-github.git] / src / config.xml
index af63747..82954da 100644 (file)
@@ -3,29 +3,40 @@
 <proxy>
   <target default="1" name="voyager">
     <!-- default target -->
+    <url>z3950.loc.gov:7090/voyager</url>
     <url>z3950.loc.gov:7094/voyager</url>
-    <keepalive>1</keepalive>
+    <keepalive>
+      <bandwidth>500000</bandwidth>
+      <pdu>500</pdu>
+    </keepalive>
     <limit><!-- limits .. -->
       <bandwidth>200000</bandwidth>
       <pdu>31</pdu>
       <retrieve>20</retrieve>
     </limit>
-    <query type="1" value="10" error="114"/>
-    <target-timeout>120</target-timeout>
-    <client-timeout>20</client-timeout>
+    <attribute type="1" value="10" error="114"/>
+    <target-timeout>180</target-timeout>
+    <client-timeout>120</client-timeout>
+    <syntax type="usmarc"/>
+    <syntax type="*" error="238"/>
   </target>
   <target name="localhost">
     <url>localhost:9999</url>
-    <keepalive>0</keepalive>
+    <url>localhost:9998</url>
+    <keepalive/> <!-- keepalive enabled -->
     <limit><!-- limits .. -->
       <bandwidth>50000</bandwidth>
       <pdu>11</pdu>
       <retrieve>10</retrieve>
     </limit>
-    <query type="1" value="10" error="114"/>
+    <attribute type="1" value="10,1023-9000" error="114"/>
+    <syntax type="usmarc"/>
+    <syntax type="grs1"/>
+    <syntax type="xml"/>
+    <syntax type="*" error="238"/>
   </target>
   <target name="*">
     <!-- everything else -->
   </target>
-  <max-clients>1</max-clients>
+  <max-clients>500</max-clients>
 </proxy>