projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Filter frontend_net honors connect-max
[metaproxy-moved-to-github.git]
/
src
/
test_filter_log.cpp
diff --git
a/src/test_filter_log.cpp
b/src/test_filter_log.cpp
index
a14b827
..
db02fb7
100644
(file)
--- a/
src/test_filter_log.cpp
+++ b/
src/test_filter_log.cpp
@@
-43,14
+43,11
@@
public:
}
Z_GDU *gdu = package.request().get();
}
Z_GDU *gdu = package.request().get();
- if (gdu)
+ if (gdu && gdu->which == Z_GDU_Z3950)
{
// std::cout << "Got PDU. Sending init response\n";
mp::odr odr;
{
// std::cout << "Got PDU. Sending init response\n";
mp::odr odr;
- Z_APDU *apdu = zget_APDU(odr, Z_APDU_initResponse);
-
- apdu->u.initResponse->implementationName = "YP2/YAZ";
-
+ Z_APDU *apdu = odr.create_initResponse(gdu->u.z3950, 0, 0);
package.response() = apdu;
}
return package.move();
package.response() = apdu;
}
return package.move();