Yun wifi server client data sending after fixed time intervals

I am using Arduino Yun to interface with humidity, temperature and GPS sensors. I am using the libraries for all the sensors interfacing.
The target is to get and process the sensors data and send it to the client using wifi.
The sensors interfacing is working fine as the data is showed on the serial monitor. The problem comes with wifi communication.
I am using the default ip 192.168.240.1/arduino/whatever and connecting my mobile phone directly to the Yun Server.
Then I made a simple app to connect to the web link and receive the data to display it and log it to a text file.
The application is working fine if used for only temperature and humidity sensors or any random data. The Yun server sends the data after every 5 seconds and the application refreshes the page after the same interval in this case and it works fine.
The problem arises when I try to just include the GPS routine and have not even interfaced the hardware. The data is sent by Yun server after every 15 seconds and the app refreshes after the same time. It either receives the first couple of packets and then the data received is null or even most of the times it doesn't receive any data but refreshes to show null. The data is displayed on the serial port without any error and the time interval is exactly 15 seconds between sending the next packet.
I think there is some synchoronization problem between the app and the server but I don't know why it is not bothering when the sensors are only temperature and humidity and the interval is 5 secs. Even if I increase the interval to 10 secs or higher with any type of data (temp, humd, or random), it goes out of sync and the app receives null at every refresh.
Also, one more question is if I don't use the command client.stop(); after sending one data packet, it stops working and the same problem mentioned above occurs even for the random data after every 5 secs. I opted not to stop the client every time to keep the data sent by server on the ip until it is replaced by the next packet but it doesn't work.
Please help if anyone knows anything related to this. I will be highly thankful.
If you need to see the code, I can send you by personal email.
Thanks again

Move most of business logic into Linux side.

Use PHP & SQLITE3 for Process Class to capture sensor data.

Wrote php page to read SQLITE3 and display at web site.

Php and Uhttpd

Php and Sqlite3

@Memoon,
Your are expecting too much from the GPS. GPS is not that reliable. Most GPS is done with MEMS and this is even less reliable than the standard GPS.

Read this:
What is GPS?

Make sure to read the bottom part Sources of GPS signal errors
Jesse