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:
3c7404f
)
propagate error when soap_send_fault() close connection
author
Miloš Mulač
<mulac@civ.zcu.cz>
Fri, 10 Feb 2006 10:16:18 +0000
(10:16 +0000)
committer
Miloš Mulač
<mulac@civ.zcu.cz>
Fri, 10 Feb 2006 10:16:18 +0000
(10:16 +0000)
- prevent IS 'bad select descriptor' dying (hopefully the final strike)
org.glite.jp.index/src/bones_server.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jp.index/src/bones_server.c
b/org.glite.jp.index/src/bones_server.c
index
299e041
..
7f12a4e
100644
(file)
--- a/
org.glite.jp.index/src/bones_server.c
+++ b/
org.glite.jp.index/src/bones_server.c
@@
-351,14
+351,16
@@
int request(int conn,struct timeval *to,void *data)
#endif
)
{
- soap_send_fault(soap);
+ soap_send_fault(soap); // sets soap->keep_alive back to 0 :(
+ // and closes connection
if (ctx->error) {
/* XXX: shall we die on some errors? */
int err = ctx->error->code;
glite_jp_clear_error(ctx);
return err;
}
- return 0;
+
+ return ECANCELED; // let srv_bones know something is wrong
}
glite_jp_run_deferred(ctx);