projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DRY out multiple hash functions.
[pazpar2-moved-to-github.git]
/
src
/
logic.c
diff --git
a/src/logic.c
b/src/logic.c
index
e927782
..
2abae16
100644
(file)
--- a/
src/logic.c
+++ b/
src/logic.c
@@
-57,7
+57,7
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <yaz/timing.h>
#endif
#include <yaz/timing.h>
#endif
-
+#include "parameters.h"
#include "pazpar2.h"
#include "eventl.h"
#include "http.h"
#include "pazpar2.h"
#include "eventl.h"
#include "http.h"
@@
-79,10
+79,7
@@
struct parameters global_parameters =
{
0, // dump_records
0, // debug_mode
{
0, // dump_records
0, // debug_mode
- 60, // session timeout
100,
100,
- 180, // Z39.50 session timeout
- 15 // Connect timeout
};
static void log_xml_doc(xmlDoc *doc)
};
static void log_xml_doc(xmlDoc *doc)
@@
-569,7
+566,8
@@
enum pazpar2_error_code search(struct session *se,
else
{
no_working++;
else
{
no_working++;
- if (client_prep_connection(cl))
+ if (client_prep_connection(cl, se->service->z3950_connect_timeout,
+ se->service->z3950_session_timeout))
client_start_search(cl);
}
}
client_start_search(cl);
}
}