[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kresources/groupwise/soap
From: Will Stephenson <lists () stevello ! free-online ! co ! uk>
Date: 2005-07-20 12:44:50
Message-ID: 1121863490.665414.4933.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 436876 by wstephens:
Destroy cursors after use, be nice to the server
M +28 -3 gwjobs.cpp
--- trunk/KDE/kdepim/kresources/groupwise/soap/gwjobs.cpp #436875:436876
@@ -266,10 +266,20 @@
if ( readCursorResponse.items->item.size() < *( readCursorRequest.count ) )
break;
}
-/* readChunkSize = QMIN( readChunkSize, count - readItems );
- *(readCursorRequest.count) = readChunkSize;*/
- //*(readCursorRequest.position) = current;
+ _ngwm__destroyCursorRequest destReq;
+ _ngwm__destroyCursorResponse destResp;
+ destReq.container = id;
+ destReq.cursor = cursor;
+ mSoap->header->ngwt__session = mSession;
+ if ( soap_call___ngw__destroyCursorRequest( mSoap, mUrl.latin1(), 0,
+ &destReq,
+ &destResp ) != SOAP_OK )
+ {
+ kdDebug() << "Faults according to GSOAP:" << endl;
+ soap_print_fault(mSoap, stderr);
+ }
+
kdDebug() << " read " << readItems << " items in total" << endl;
#endif
}
@@ -559,6 +569,21 @@
break;
}
}
+
+ _ngwm__destroyCursorRequest destReq;
+ _ngwm__destroyCursorResponse destResp;
+ destReq.container = id;
+ destReq.cursor = cursor;
+ mSoap->header->ngwt__session = mSession;
+ kdDebug() << "sending destroy calendar cursor request with session: " << mSession.c_str() << endl;
+ if ( soap_call___ngw__destroyCursorRequest( mSoap, mUrl.latin1(), 0,
+ &destReq,
+ &destResp ) != SOAP_OK )
+ {
+ kdDebug() << "Faults according to GSOAP:" << endl;
+ soap_print_fault(mSoap, stderr);
+ }
+
kdDebug() << " read " << readItems << " items in total" << endl;
#endif
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic