Open trueicecold opened 11 years ago
I have a similar problem. I've tested the xfacebook_platform_client.php code to simply connect to the facebook chat and drop a message. The PHP code is hosted on a test domain and i've also created a test fb-app. I've used my Facebook account for the tests.
Unfortunally, now everyone who sends me a chat message on FB, gets replied with four identical messages, because 4 is the number of times i've reloaded the script.
I think i've created 4 chat bots and i don't know how to kill them! I've tried cleaning the browser caches, deleting the php script and the facebook app, but JAXL is still running. Do you know anything helpful?
$client = new JAXL(...)
posix_kill($client->pid, SIGINT);
We're having heavy usage of JAXL in our Facebook App to send chat messages to users by using a slightly modified xfacebook_platform_client.php example.
Thing is after using so many calls, we were noticing some connections are never closed (Stuck on apache as WRITING or GRACEFULLY FINISHING forever).
After a few hours - apache crashes for having to many of those.
The code we're using is:
Any idea on why this is happening? Any way of performing a timeout on the socket and forcefully close it?