You are here: Re: Reentrant POST hangs the session « PHP Programming Language « IT news, forums, messages
Re: Reentrant POST hangs the session

Posted by Erwin Moller on 10/15/90 11:39

a wrote:

> Thanks for your reply.
>
> Assuming that that's the problem (the locked session temp file) do you see
> any fixes, either in the code or by changing the configuration?

Honestly no. I am not saying there are no fixes, but I just do not know
engough of the internals of PHP and calling systemfunctions.
I expect it is hard for PHP to monitor what is happening when it calls some
systemfunction, and I can imagine PHP will 'hang' waiting for a response.
But I do not know how this functionality is implemented.

If I was in your situation I would first try to figure out if the systemcall
sometimes hangs. Maybe by making a script that calls in 100 times in a row
(increase the scriptimeout first).
Also try to figure out if the systemcall you make is maybe getting in
trouble if it is called many times in the same second. (Maybe it is not
threadsafe.)
You can check this simply by making a html-page that consist of 30 frames
that all call the same php-script that performs the systemcall. Be sure to
disable session for that PHP-script, otherwise you don't know if you are
having a sessionproblem or something with the systemcall.

If you are confident that the systemcall is ok, dive into a possibly blocked
session.


>
> I run another test, this time replacing the exec with a Sleep( 4 ), and
> sent multiple POST requests, and that didn't hang the session, so it seems
> to have something to do with exec.

Yes. Agree.

>
> A

Good luck.
Keep us informed with your findings.

Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация