Re: RSHUTDOWN, ISAPI

From: Date: Tue, 21 Aug 2001 09:48:40 +0000
Subject: Re: RSHUTDOWN, ISAPI
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-63947@lists.php.net to get a copy of this message
Checked the latest CVS last week. The resources are now destroyed and RSHUTDOWN is called always. So *something* is fixed.. Cheers, Adam On Tue, Jun 26, 2001 at 05:47:49PM +0200, Adam Dickmeiss wrote: > On Tue, Jun 26, 2001 at 04:57:34PM +0300, Zeev Suraski wrote: > > If it indeed happens, it is a bug. How did you check it? > > When testing the YAZ extention I saw that for long searches (to > a remote database) and repeated HTTP requests, the RSHUTDOWN wasn't > called. I tried logging to a file open/close on each request to track > it in RSHUTDOWN. The problem for this extension is that the resouces > (each Z39.50 database session) are not freed. I then tried using proper > resources as offered by the Zend API. Did something like > > le_link = zend_register_list_destructors_ex (yaz_close_link, 0, > "YAZ link", module_number); > > and used ZEND_REGISTER_RESOURCE, etc. That didn't make a difference > (yaz_close_link not being called). Either I do something wrong, or the > resource management may be affected as well. > > One obvious mistake I might have done is that the first thread is > still running in my waiting for a search response from the database. > I've verified that my wait (yaz_wait that is) really does return. > So the request is done - no browser will read it - obviously. > > Thank you for responding to this. > > Cheers, > Adam > > > Zeev > > > > At 10:26 26/6/2001, Adam Dickmeiss wrote: > > >Hi, > > > > > >when running PHP using IIS in ISAPI (threaded) mode I notice that > > >when a HTTP request is received before the current is finished, > > >the RSHUTDOWN is not called for the first request (first thread). > > >Hence, RSHUTDOWN is called once, but RINIT is called twice. > > > > > >Is that a bug or is that expected behavior? > > > > > >I compiled and used the latest CVS (that is - about one week ago). > > > > > >Cheers, > > > Adam > > > > > >-- > > >Adam Dickmeiss mailto:adam@indexdata.dk > > >http://www.indexdata.dk > > >Index Data T: +45 33410100 Mob.: 212 212 66 > > > > > >-- > > >PHP Development Mailing List > > ><http://www.php.net/> > > >To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > > >For additional commands, e-mail: php-dev-help@lists.php.net > > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > -- > > Zeev Suraski <zeev@zend.com> > > CTO & co-founder, Zend Technologies Ltd. > > http://www.zend.com/ > > -- > Adam Dickmeiss mailto:adam@indexdata.dk > http://www.indexdata.dk > Index Data T: +45 33410100 Mob.: 212 212 66 > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- Adam Dickmeiss mailto:adam@indexdata.dk http://www.indexdata.dk Index Data T: +45 33410100 Mob.: 212 212 66

« previous php.dev (#63947) next »