Socket.io takes a long time to load for me why?
-
Was wondering if someone can explain this socket.io to me. Did a benchmark test on a forum I'm hosting, and socket.io takes 10 seconds to load as seen here.
But when I test this forum, I noticed there are more than one socket.io calls and is much quicker.
What can I do to make my socket.io faster? I hosted on Apache, then hosted on Nginx to see if it would get faster, but stays the same. I used the same configs that is documented here. =(
-
Nope.
Are you thinking that I'm getting attacked a lot?
Still doesnt make sense why my socket.io is 0 bytes and it takes 10 seconds to load. It is a relatively low traffic forum.
-
Just a guess, but it sounds very similar to this
https://community.nodebb.org/topic/4383/hundreds-of-polling-requestsIf your nodebb version is before the commit they mention, you might try upgrading or commenting out the line they mention at the bottom.
Also, if that works, then your site is using long-polling and something may be askew with your socket.io config.
-
@hoathenguyen85 said:
Nope.
Are you thinking that I'm getting attacked a lot?
Still doesnt make sense why my socket.io is 0 bytes and it takes 10 seconds to load. It is a relatively low traffic forum.
nope , because CF dont support socket.io for free atleast..
when asking, it would be a good practice to say what version and server you're using..