return error to srv_bones if soap call fails
authorMiloš Mulač <mulac@civ.zcu.cz>
Wed, 15 Feb 2006 11:58:47 +0000 (11:58 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Wed, 15 Feb 2006 11:58:47 +0000 (11:58 +0000)
org.glite.jp.primary/src/bones_server.c

index 214e2f7..95436b0 100644 (file)
@@ -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)) {