From 8bccab19b0450decb4292da3d100b4a9847addd3 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 14 Feb 2011 14:09:56 +0100 Subject: [PATCH] Filter sru_z3950: set init sz to 10 M Increase values of {preferredMessage,maximumRecord}Size for Init Requests generated by sru_z3950 from 1 to 10 megabytes. SRU don't have these parameters and in most cases we don't care or don't want backends to return partial results. However, since comstack by default don't allow more than 5 MB by default and since packages are all in memory we can't increase too much. --- src/filter_sru_to_z3950.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/filter_sru_to_z3950.cpp b/src/filter_sru_to_z3950.cpp index 9187396..a95f40b 100644 --- a/src/filter_sru_to_z3950.cpp +++ b/src/filter_sru_to_z3950.cpp @@ -368,6 +368,9 @@ yf::SRUtoZ3950::Impl::z3950_init_request(mp::Package &package, } init_req->idAuthentication = auth; + + *init_req->preferredMessageSize = 10*1024*1024; + *init_req->maximumRecordSize = 10*1024*1024; ODR_MASK_SET(init_req->options, Z_Options_search); ODR_MASK_SET(init_req->options, Z_Options_present); -- 1.7.10.4