Chrome loads websocket very slowly

I have a simple AngularJS page for fetching data from a server. The server, in turn, receives this data from a TCP connection. All this happens in real time. The data received is weather data and is updated every five seconds.

Attached below are two images showing the answer in chrome and firefox, like on reboot.

Response on reload in Chrome

and Response on reload in Firefox

As you can see, a GET with status 101 takes a whopping 1.4 minutes on Chrome, while Firefox only takes 2ms. Why is this so?

I repeated this experiment several times with the same result.

My Chrome: 37.0.2062.68 beta and Firefox: 31.0, both the latter at the time of this writing.

I have also tried in Comodo Dragon, some version, and it behaves like firefox. The code for the controller, index.html and webserver can be found here: https://github.com/chintanp/weather_station/tree/master/angulared

+3


source to share





All Articles