projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
893f681
)
ZOOM: throw diagnostic for invalid sru value
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 28 Jul 2011 09:32:13 +0000
(11:32 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 28 Jul 2011 09:32:13 +0000
(11:32 +0200)
src/zoom-c.c
patch
|
blob
|
history
diff --git
a/src/zoom-c.c
b/src/zoom-c.c
index
742b956
..
d2f33da
100644
(file)
--- a/
src/zoom-c.c
+++ b/
src/zoom-c.c
@@
-506,8
+506,15
@@
ZOOM_API(void)
ZOOM_options_get_int(c->options, "preferredMessageSize", 1024*1024);
c->async = ZOOM_options_get_bool(c->options, "async", 0);
+
+ if (c->sru_mode == zoom_sru_error)
+ {
+ ZOOM_set_error(c, ZOOM_ERROR_UNSUPPORTED_PROTOCOL, val);
+ ZOOM_connection_remove_tasks(c);
+ return;
+ }
+
yaz_log(c->log_details, "%p ZOOM_connection_connect async=%d", c, c->async);
-
ZOOM_connection_add_task(c, ZOOM_TASK_CONNECT);
if (!c->async)