elephant.io
elephant.io copied to clipboard
multiple PHP threads running at the same time causes error
We had a perfectly running test environent, but now that we are testing live with more visitors we are seeing a lot of errors:
The server returned an unexpected value. Expected "HTTP/1.1 101", had ""
After some investigation I expect this is happening when there are two PHP threads running at the same time. We are connecting from 1 PHP server to 2 node servers via a load balancer.
Reading the other issues, and comments like this one (https://github.com/Wisembly/elephant.io/issues/107#issuecomment-105915419) I expect that node determines the seccond elephantio connection attemt (before the first is closed) is the same as the first one and is already connected.
Is there a way to force a new connection?
I see there is a 'forceNew' property in the socket.io js client. Is there something similar for elephant.io?