Date: 06/26/01
- Next message: the_polymorph <email protected>: "[PHP-DEV] Bug #11659 Updated: fsockopen and fopen"
- Previous message: bquinton <email protected>: "[PHP-DEV] Bug #11710: library -lstdc++ / -lg++ not found"
- In reply to: Zeev Suraski: "Re: [PHP-DEV] RSHUTDOWN, ISAPI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <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: php-dev-unsubscribe <email protected>
> >For additional commands, e-mail: php-dev-help <email protected>
> >To contact the list administrators, e-mail: php-list-admin <email protected>
>
> --
> Zeev Suraski <zeev <email protected>>
> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/
-- Adam Dickmeiss mailto:adam <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: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: the_polymorph <email protected>: "[PHP-DEV] Bug #11659 Updated: fsockopen and fopen"
- Previous message: bquinton <email protected>: "[PHP-DEV] Bug #11710: library -lstdc++ / -lg++ not found"
- In reply to: Zeev Suraski: "Re: [PHP-DEV] RSHUTDOWN, ISAPI"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

