From 74e2c99a60894727031640196b71c4f9098cf3e4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Wed, 28 May 2008 13:01:35 +0000 Subject: [PATCH] keepalive --- org.glite.jp.primary/examples/jpps-test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; -- 1.8.2.3