From: Miloš Mulač Date: Wed, 15 Feb 2006 11:58:47 +0000 (+0000) Subject: return error to srv_bones if soap call fails X-Git-Tag: merge_for_3_1_dst~9 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=bf135d2c5bec97f5fe65f1f0174ee888e7a5b610;p=jra1mw.git return error to srv_bones if soap call fails --- diff --git a/org.glite.jp.primary/src/bones_server.c b/org.glite.jp.primary/src/bones_server.c index 214e2f7..95436b0 100644 --- a/org.glite.jp.primary/src/bones_server.c +++ b/org.glite.jp.primary/src/bones_server.c @@ -346,14 +346,15 @@ static 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 } if (glite_jp_run_deferred(ctx)) {