git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3034b26
)
instruct IL to not send us faulty messages again
author
Michal Voců
<michal@ruk.cuni.cz>
Tue, 28 Aug 2012 12:37:53 +0000
(12:37 +0000)
committer
Michal Voců
<michal@ruk.cuni.cz>
Tue, 28 Aug 2012 12:37:53 +0000
(12:37 +0000)
org.glite.lb.server/src/request.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/request.c
b/org.glite.lb.server/src/request.c
index
a9cf708
..
769c021
100644
(file)
--- a/
org.glite.lb.server/src/request.c
+++ b/
org.glite.lb.server/src/request.c
@@
-67,7
+67,7
@@
create_reply(const edg_wll_Context ctx, char **buf)
err_code_min = 0;
- switch(edg_wll_Error(ctx,NULL,&err_msg)) {
+ switch(e
rr_code = e
dg_wll_Error(ctx,NULL,&err_msg)) {
case 0:
err_code = LB_OK;
@@
-86,9
+86,14
@@
create_reply(const edg_wll_Context ctx, char **buf)
break;
default:
- err_code = LB_DBERR;
- err_code_min = edg_wll_Error(ctx,NULL,NULL);
- break;
+ if(err_code > EDG_WLL_ERROR_BASE) {
+ /* that would mean parse error, do not bother sending it again */
+ err_code = LB_PROTO;
+ } else {
+ err_code = LB_DBERR;
+ }
+ err_code_min = edg_wll_Error(ctx,NULL,NULL);
+ break;
}