Current time: 06-18-2024, 07:09 PM Hello There, Guest! (LoginRegister)


Post Reply 
Error 500
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #29
RE: Error 500
That was with old "locking" code. Keep in mind the now we use real locking assets (flock). When flock is called, the function doesn't return until it successfully acquired the lock.

sci2tech Wrote:1. User1 add subdomain -> engine-mgr is running -> ispcp-sub-mng is running and altering /etc/apache2/sites-available/ispcp.conf
2. reseller / admin modify another domain -> ispcp-dmn/sub/als/subals-mngr is running and try to alter same file.
Now if user1 lock engine, second user will not be able to run engine an must wait until a third user trigger engine.

What would now actually happen is:

1. User1 add subdomain -> rqst-mgr is running -> ispcp-sub-mng is running and altering /etc/apache2/sites-available/ispcp.conf
2. reseller / admin modify another domain -> rqst-mngr is run and gets blocked in the "flock()" call until it can acquire the lock.
3. The first rqst-mngr ends, releasing the lock
4. "flock()" call on the second request returns because now it has been able to acquire the lock -> subals-mngr is run and the reseller/admin changes are made effective

See? No gui locking, and still no problem.
08-29-2009 07:47 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Error 500 - theprincy - 08-26-2009, 08:10 AM
RE: Error 500 - theprincy - 08-27-2009, 01:36 AM
RE: Error 500 - kilburn - 08-27-2009, 03:42 AM
RE: Error 500 - theprincy - 08-27-2009, 09:02 AM
RE: Error 500 - theprincy - 08-27-2009, 08:20 PM
RE: Error 500 - nuke3d - 08-27-2009, 08:29 PM
RE: Error 500 - theprincy - 08-27-2009, 08:43 PM
RE: Error 500 - nuke3d - 08-27-2009, 09:33 PM
RE: Error 500 - theprincy - 08-27-2009, 09:36 PM
RE: Error 500 - nuke3d - 08-27-2009, 09:45 PM
RE: Error 500 - theprincy - 08-27-2009, 09:50 PM
RE: Error 500 - nuke3d - 08-27-2009, 09:56 PM
RE: Error 500 - theprincy - 08-27-2009, 10:01 PM
RE: Error 500 - nuke3d - 08-27-2009, 10:09 PM
RE: Error 500 - theprincy - 08-28-2009, 12:19 AM
RE: Error 500 - theprincy - 08-28-2009, 04:12 PM
RE: Error 500 - gOOvER - 08-28-2009, 04:41 PM
RE: Error 500 - theprincy - 08-28-2009, 04:46 PM
RE: Error 500 - theprincy - 08-28-2009, 06:35 PM
RE: Error 500 - kilburn - 08-28-2009, 07:15 PM
RE: Error 500 - gOOvER - 08-28-2009, 07:51 PM
RE: Error 500 - theprincy - 08-28-2009, 08:00 PM
RE: Error 500 - theprincy - 08-28-2009, 07:40 PM
RE: Error 500 - theprincy - 08-29-2009, 04:52 AM
RE: Error 500 - kilburn - 08-29-2009, 02:33 PM
RE: Error 500 - theprincy - 08-29-2009, 05:47 PM
RE: Error 500 - kilburn - 08-29-2009, 07:13 PM
RE: Error 500 - sci2tech - 08-29-2009, 07:34 PM
RE: Error 500 - kilburn - 08-29-2009 07:47 PM
RE: Error 500 - sci2tech - 08-29-2009, 08:02 PM
RE: Error 500 - kilburn - 08-29-2009, 09:51 PM
RE: Error 500 - sci2tech - 08-29-2009, 11:28 PM
RE: Error 500 - kilburn - 08-30-2009, 03:28 AM
RE: Error 500 - sci2tech - 08-30-2009, 03:50 AM
RE: Error 500 - kilburn - 08-30-2009, 06:53 PM
RE: Error 500 - sci2tech - 08-30-2009, 06:56 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)