From: Eric Hodel Date: 2003-01-23T10:31:53+09:00 Subject: Re: mod_ruby: what's persistent and what's shared? --IDYEmSnFhs3mNXr+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Tom Sawyer (transami@transami.net) wrote: > i'm tired of being confused about this and i'm hoping someone can clear t= his=20 > up for me. >=20 > when i make a request to apache on a mod_ruby script, i know that the rub= y=20 > interpreter is embedded into apache so that a new instace of ruby does no= t=20 > have to be started every time. so then global variables and class definit= ions=20 > including class variables persist between connections. right? so if i'm U= SER1=20 > and i request a ruby app that creates a global variable or an object inst= ance=20 > with a defined class variable, then when USER2 requests the same app, wil= l=20 > the gloabal variable or class variable be set as it was for USER1? They persist between connections to the *same* *process* --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --IDYEmSnFhs3mNXr+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+L0YHMypVHHlsnwQRApaVAJ93te1JEk+twBcUfSVLN4es/7URrgCfdtmW aDLvZ6sQXs3cLS3RfcwXFdY= =/s9q -----END PGP SIGNATURE----- --IDYEmSnFhs3mNXr+--