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:
cc3abee
)
Error handling for Z_APDU_close uses ZOOM_set_dset_error() to pass
author
Mike Taylor
<mike@indexdata.com>
Wed, 2 Nov 2011 12:28:51 +0000
(12:28 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Wed, 2 Nov 2011 12:28:51 +0000
(12:28 +0000)
back-end's addinfo through into the ZOOM response addinfo.
src/zoom-z3950.c
patch
|
blob
|
history
diff --git
a/src/zoom-z3950.c
b/src/zoom-z3950.c
index
9db6319
..
400de9f
100644
(file)
--- a/
src/zoom-z3950.c
+++ b/
src/zoom-z3950.c
@@
-1766,7
+1766,7
@@
void ZOOM_handle_Z3950_apdu(ZOOM_connection c, Z_APDU *apdu)
yaz_log(c->log_api, "%p handle_Z3950_apdu Close PDU", c);
if (!ZOOM_test_reconnect(c))
{
- ZOOM_set_error(c, ZOOM_ERROR_CONNECTION_LOST, c->host_port);
+ ZOOM_set_dset_error(c, ZOOM_ERROR_CONNECTION_LOST, "ZOOM", c->host_port, apdu->u.close->diagnosticInformation);
ZOOM_connection_close(c);
}
break;