Re: RPC interface to appserver now even simpler
Reinhard Mueller <[email protected]> Tue, 21 Feb 2006 13:14:12 +0100
| Newsgroups | gmane.comp.gnu.enterprise.devel |
|---|---|
| Organization | GNU Enterprise |
| Message-ID | <1140524052.2164.33.camel@london> |
Am Dienstag, den 21.02.2006, 04:48 +0100 schrieb Malek Hadj-Ali: > > So if you don't need a geasList any more, simply _destroy it. When you > > don't need a geasSession any more, simply _destroy it. > > > why keep the name "_destroy" and not use "close", now that it's free? > (doesn't "close" make more sense?) This function does not only close some database cursors and the like, it really destroys the object on the server side. The concept of _destroy is a general concept in our RPC, not limited to appserver. > > And, if you just close the TCP connection, the server will automatically > > call the _destroy for all objects related to that connection (still it > > would be considered bad style). > > > what do you mean by "close the TCP connection"? sending a request with > header "Connection: Close"? Is that the way to shutdown properly the > session manager? The automatic _destroy should run (sooner or later) for any kind of closing the connection, ranging from (AFAICT) "Connection: Close" to plugging the power cable of the client. Thanks, Reinhard _______________________________________________ Gnue-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnue-dev
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBD+wQU4LscQraoxVkRAnUEAJ4liC4qq+SgFzTxapqq2vseAVs0SACcCM93 K7XwfU0r5PsxENZsPnDzd1A= =vCY3 -----END PGP SIGNATURE-----