Giter Club home page Giter Club logo

Comments (7)

eprincen2 avatar eprincen2 commented on July 19, 2024

The issue is in handshake. Getting a ServerConnectionFailureException. I have the ssl option for verify_peer set to false since elephant.io is connecting inside my server farm. I don't really need ssl for elephant.io, but it seems easer than having my socket.io server use both https and http together. Line 141 of Version1X.php doesn't seem to take into account my verify_peer = false option setting. When I get home, I'll try setting that and see if it makes any difference.

from elephant.io.

Taluu avatar Taluu commented on July 19, 2024

The difference with the 2.0 is that it is not using curl (or sockets) anymore to do the handshake, just a simple file_get_contents. But yeah, maybe there is something I could have missed.

If you find it, feel free to make a PR or keep us updated, and we'll check as soon as we'll have some time !

from elephant.io.

eprincen2 avatar eprincen2 commented on July 19, 2024

Since I actually don't NEED SSL for the back end php servers to connect to, I created a new http listener on my socket.io server and split client and server functions out. Clients still connect via SSL, and elephant.io connects without. Works fine. Solves the problem. So, for me, this is no longer an issue.
It actually adds some extra security because it removes the ability for any clients to send messages that should really only be initiated by the php servers. And clients cannot connect to the new server port due to the firewall. Probably should have been done anyway.

from elephant.io.

Taluu avatar Taluu commented on July 19, 2024

Got it, but I'm still leaving this issue open to put a reminder to think about it. :)

from elephant.io.

brunobg avatar brunobg commented on July 19, 2024

I'm using https without any problems...

from elephant.io.

Taluu avatar Taluu commented on July 19, 2024

Should be fixed by #103 (which still needs a full review and manual merging at the time this message is written)

from elephant.io.

Zaszczyk avatar Zaszczyk commented on July 19, 2024

@eprincen2 could You share You nodeJS code? This part exactly: I created a new http listener on my socket.io server and split client and server functions out. Clients still connect via SSL, and elephant.io connects without.

from elephant.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.