php - Server dropping local connections -



php - Server dropping local connections -

i have in debian server 2 applications running under apache, 1 in php , other in ruby on rails. php page makes lot of calls running ruby on rails app, calls file_get_contents on url http://localhost/example.json.

the problem is, after while (usually days) stops working, everytime seek local connection it's dropped. if seek connect localhost on service (like ssh), works normally, and, if seek connect rails app outside server, works too.

to solve this, have reboot server (sometimes more once) work properly. seems me server blocking somehow, there nil odd on /var/log/messages (which iptables logs things, right?)

thanks in advance!

whenever file_get_contents run void

$result = @file_get_contents if(! $result) { // error }

this makes sure code doesn't hang on function if (for instance) file not reachable.

that beingness said, never had lock server. makes sure rest of code runs should. server hangs because wants data. result should not dramatic.

i hope helps bit @ least. i'm curious hear came with.

php ruby-on-rails apache debian

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -