Jump to content

Suspected Lock


jaymc

Recommended Posts

I have a php script which connects to MSN via a socket

When doing this, it sometimes lags for over 40 seconds...

When this happens I cant access any page on my site from where the script was requested (via popup) untill I restart apache

My best guess is that when that script is running and causing the lag it puts some kind of lock on any request that has come from the same page the popup did (http socket?)

I think Im on the right lines, but does anyone else have a better explination and solution

Cheers
Link to comment
https://forums.phpfreaks.com/topic/32389-suspected-lock/
Share on other sites

I had a similar problem while testing ajax code on ie.  I would be locked out of the site until I cancelled all of my browser instances.  That was about the scaryest web site disfunction I every saw. 

Come to find out, ie has a limit of 1 (or 2?) open http connections per domain name.  If they are already in use you are completely locked out of going to the site.  Cancelling all instances of the browser always worked(makes sense, the connection would be dropped).  I ended up putting a lot of error resetting/ ajax auto-aborting(), in the code because of ie and this problem.  The problem does not occur with firefox. 
Link to comment
https://forums.phpfreaks.com/topic/32389-suspected-lock/#findComment-150539
Share on other sites

Ahhh yes that would make sense !!

However, I have a network and when running the script on my laptop, whilst locked I quickly tried to access a page on my desktop and that was locked out also

However, if I open a new browser window I have no problem

It appears that the lock is only for people connected at the time of the 'lock'

Anyone connecting while the 'lock' is in process gets through fine..

Its as if its locking out any current connections it has?
Link to comment
https://forums.phpfreaks.com/topic/32389-suspected-lock/#findComment-150880
Share on other sites

Additional

I have another script that queries a database and that sometimes gives 3 seconds lag..

That is also crashing the site... so I think it must be a MYSQL lock...

Any ideas on that?

[b]I think it may be because the query is taking 100% disk IO on the database this not allowing the heads to search for other queries until that one is complete...[/b]
Link to comment
https://forums.phpfreaks.com/topic/32389-suspected-lock/#findComment-151972
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.