projects
/
pazpar2-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:
3088de1
)
HACK to force ALREADY_BLOCKED response
author
Dennis Schafroth
<dennis@indexdata.com>
Fri, 25 Nov 2011 10:25:39 +0000
(11:25 +0100)
committer
Dennis Schafroth
<dennis@indexdata.com>
Fri, 25 Nov 2011 10:25:39 +0000
(11:25 +0100)
src/http_command.c
patch
|
blob
|
history
diff --git
a/src/http_command.c
b/src/http_command.c
index
f736b38
..
2809989
100644
(file)
--- a/
src/http_command.c
+++ b/
src/http_command.c
@@
-1035,6
+1035,8
@@
static void show_records_ready(void *data)
show_records(c, -1);
}
show_records(c, -1);
}
+int show_count = 0;
+
static void cmd_show(struct http_channel *c)
{
struct http_request *rq = c->request;
static void cmd_show(struct http_channel *c)
{
struct http_request *rq = c->request;
@@
-1085,7
+1087,9
@@
static void cmd_show(struct http_channel *c)
{
// if there is already a watch/block. we do not block this one
if (session_set_watch(s->psession, SESSION_WATCH_SHOW,
{
// if there is already a watch/block. we do not block this one
if (session_set_watch(s->psession, SESSION_WATCH_SHOW,
- show_records_ready, c, c) != 0)
+ show_records_ready, c, c) != 0
+// || (++show_count % 6 == 0)
+ )
{
yaz_log(YLOG_WARN, "Attempt to block multiple times on show block. Not supported!");
error(rs, PAZPAR2_ALREADY_BLOCKED, "show");
{
yaz_log(YLOG_WARN, "Attempt to block multiple times on show block. Not supported!");
error(rs, PAZPAR2_ALREADY_BLOCKED, "show");