According to Gsoap manual we intialize SOAP_IO_KEEPALIVE
using
soap_init2(&soap, SOAP_IO_KEEPALIVE, SOAP_IO_KEEPALIVE);
But while closing socket
"A client should reset SOAP_IO_KEEPALIVE just before the last call to a server to close the connection after this last call. This will close the socket after the call and also informs the server to gracefully close the connection". Can anyone please explain me how to reset SOAP_IO_KEEPALIVE in client side?