Slow connection from apache to cumulus MX server
Posted: Wed 07 Sep 2022 6:57 pm
Hi
I have Cumulus MX and my website webserver on the same PC and I have been using a PHP script with file_get_contents catching http://127.0.0.1:8998/api/data/currentdata to feed my web site gauges page but in the latest MX versions the response is very slow, around 15 secs to get the data.
Directly in the browser there is no problem but with file_get_contents with php and apache in the same PC there is that 15 secs delay.
With previous MX versions (3017 for example) didn't happen that problem.
I know that MX uses a C library called EmbedIO to create its web server.
Some hints to know how to fix the problem ?? I have been trying to change http headers in the file_get_contents petition with no success. Something has changed in the MX server ??
Thanks
I have Cumulus MX and my website webserver on the same PC and I have been using a PHP script with file_get_contents catching http://127.0.0.1:8998/api/data/currentdata to feed my web site gauges page but in the latest MX versions the response is very slow, around 15 secs to get the data.
Directly in the browser there is no problem but with file_get_contents with php and apache in the same PC there is that 15 secs delay.
With previous MX versions (3017 for example) didn't happen that problem.
I know that MX uses a C library called EmbedIO to create its web server.
Some hints to know how to fix the problem ?? I have been trying to change http headers in the file_get_contents petition with no success. Something has changed in the MX server ??
Thanks