elephant.io icon indicating copy to clipboard operation
elephant.io copied to clipboard

multiple PHP threads running at the same time causes error

Open flyon opened this issue 8 years ago • 1 comments

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?

flyon avatar Oct 18 '16 16:10 flyon

I see there is a 'forceNew' property in the socket.io js client. Is there something similar for elephant.io?

flyon avatar Oct 18 '16 16:10 flyon