From: Aleš Křenek Date: Wed, 28 May 2008 13:01:35 +0000 (+0000) Subject: keepalive X-Git-Tag: glite-yaim-lb_R_4_0_2_1~10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=74e2c99a60894727031640196b71c4f9098cf3e4;p=jra1mw.git keepalive --- diff --git a/org.glite.jp.primary/examples/jpps-test.c b/org.glite.jp.primary/examples/jpps-test.c index 1af5271..e79cefe 100644 --- a/org.glite.jp.primary/examples/jpps-test.c +++ b/org.glite.jp.primary/examples/jpps-test.c @@ -246,13 +246,19 @@ int main(int argc,char *argv[]) struct _jpelem__GetJobAttributes in; struct _jpelem__GetJobAttributesResponse out; struct jptype__attrValue *outav; + + int rep = 1; - if (argc != 4) usage(argv[0]); + if (argc < 4 || argc > 5) usage(argv[0]); + + if (argc == 5) rep = atoi(argv[4]); + in.jobid = argv[2]; in.__sizeattributes = 1; in.attributes = &argv[3]; - if (!(ret = check_fault(soap,soap_call___jpsrv__GetJobAttributes(soap,server,"",&in,&out)))) + soap->omode |= SOAP_IO_KEEPALIVE; + for (;rep;rep--) if (!(ret = check_fault(soap,soap_call___jpsrv__GetJobAttributes(soap,server,"",&in,&out)))) { int i;