You are here: Re: PHP concurrent script execution « PHP Programming Language « IT news, forums, messages
Re: PHP concurrent script execution

Posted by Wayne on 08/27/05 02:59

On 26 Aug 2005 00:08:35 -0700, "jw7u" <PokerEdge@gmail.com> wrote:

>I'm experiencing some very weird behavior. I have a simple script that
>inserts a row into the DB, then sleeps for 30 seconds.

I shouldn't ask but: Why do you have a webpage sleep for 30 seconds?

>If I try to run
>the script concurrently by opening 2 browser windows, the 2nd instance
>will not run until the 1st instance of the script has finished
>executing (30 seconds). This is NOT what I expected.

It could be that your browser is the hold up, not the server. While
your script is sleeping for the 30 seconds it still has an HTTP
connection open and the browser is still waiting for a response. It's
entirely possible (even likely) that the browser will not issue
another request for the same resource until the first request
completes.

 

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

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