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:[EMAIL PROTECTED]  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: [EMAIL PROTECTED]
> > >For additional commands, e-mail: [EMAIL PROTECTED]
> > >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> > 
> > --
> > Zeev Suraski <[EMAIL PROTECTED]>
> > CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/
> 
> -- 
> Adam Dickmeiss  mailto:[EMAIL PROTECTED]  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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Adam Dickmeiss  mailto:[EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to