X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=doc%2Fyaz-proxy-ref.xml;h=c44603da99386589c7df1f8de243426261afef6d;hp=252ed1ddc822f8cdfdc5f592102eaa4c651e7e39;hb=057fb5b5dc6bc2f57cb064117e5a1add3c3da3b3;hpb=2f1a9a4b28ae43c9da9e0740f84048065b2d3bf6 diff --git a/doc/yaz-proxy-ref.xml b/doc/yaz-proxy-ref.xml index 252ed1d..c44603d 100644 --- a/doc/yaz-proxy-ref.xml +++ b/doc/yaz-proxy-ref.xml @@ -1,14 +1,14 @@ - yaz-proxy + yazproxy 8 - yaz-proxy - The YAZ toolkit's transparent Z39.50 proxy + yazproxy + The YAZ toolkit's transparent Z39.50/SRW/SRU proxy - yaz-proxy + yazproxy -a filename -l filename -m num @@ -27,7 +27,8 @@ DESCRIPTION - yaz-proxy is a Z39.50 optimizing proxy daemon. + yazproxy is a proxy that accepts connections + from Z39.50/SRW/SRU clients and contacts a Z39.50 backend. The listening port must be specified on the command-line. inetd operation is not supported. The host:port @@ -36,16 +37,17 @@ to listen for connections coming from any address. - yaz-proxy can be configured using command-line + yazproxy can be configured using command-line options or a configuration file. Configuration file options override values specified on the command-line. - yaz-proxy rereads its configuration file and + yazproxy rereads its configuration file and reopens log files when it receives the hangup signal, SIGHUP. + OPTIONS -a filename @@ -117,14 +119,14 @@ -p pidfile - When specified, yaz-proxy will create pidfile + When specified, yazproxy will create pidfile with the process ID of the proxy. The pidfile will be generated before the process changes identity (see option -u). -u userid - When specified, yaz-proxy will change identity to the user ID + When specified, yazproxy will change identity to the user ID specified, just after the proxy has started listening to a possibly privileged port and after the PID file has been created if specified by option -u. @@ -143,62 +145,46 @@ EXAMPLES The following command starts the proxy, listening on port - 9000, with its default backend target set to the Library of - Congress bibliographic server: - + 9000, with its default backend target set to Index Data's + test server: + - $ yaz-proxy -t z3950.loc.gov:7090 @:9000 + $ yazproxy -t indexdata.dk:210 @:9000 - The LOC target is sometimes very slow. You can connect to - it using yaz-client as follows: + You can connect to the proxy via yaz-client as follows: - $ yaz-client localhost:9000/voyager - Connecting...Ok. + $ ./yaz-client localhost:9000/gils + Connecting...OK. Sent initrequest. - Connection accepted by target. - ID : 34 - Name : Voyager LMS - Z39.50 Server - Version: 1.13 - Options: search present - Elapsed: 7.131197 - Z> f computer - Sent searchRequest. - Received SearchResponse. - Search was a success. - Number of hits: 10000 - records returned: 0 - Elapsed: 6.695174 + Connection accepted by v3 target. + ID : 81 + Name : Zebra Information Server/GFS/YAZ (YAZ Proxy) + Version: Zebra 1.3.15/1.23/2.0.19 + Options: search present delSet scan sort extendedServices namedResultSets + Elapsed: 0.152108 Z> f computer Sent searchRequest. Received SearchResponse. Search was a success. - Number of hits: 10000 + Number of hits: 3, setno 1 + SearchResult-1: computer(3) records returned: 0 - Elapsed: 0.001417 + Elapsed: 0.172533 - In this test, the second search was more than 4000 times faster - than the first, because the proxy cached the result of the first - search and noticed that the second was the same. - - The YAZ command-line client, yaz-client, allows you to set the proxy address by specifying option -p. In that case, the actual backend target is specified as part of the Initialize Request. - Suppose you have a proxy running on localhost, - port 9000 and wish to connect to Index Data's test target at - indexdata.dk:210/gils you could use: - - yaz-client -p localhost:9000 indexdata.dk:210/gils - - Since port 210 is the default, the port can be omitted: + Suppose the proxy running on localhost, port 9000. + To connect to British Library's server at + blpcz.bl.uk:21021 use: - yaz-client -p localhost:9000 indexdata.dk/gils + yaz-client -p localhost:9000 blpcz.bl.uk:21021/BLPC-ALL @@ -211,7 +197,7 @@ sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t - sgml-parent-document: "proxy.xml" + sgml-parent-document: "reference.xml" sgml-local-catalogs: nil sgml-namecase-general:t End: