GithubHelp home page GithubHelp logo

Comments (3)

rauchg avatar rauchg commented on July 18, 2024

Very interesting. I wonder if trying the upgrade to a different host (eg: upgrade.yourdomain.com) would help avoid this situation

from engine.io.

martintajur avatar martintajur commented on July 18, 2024

Allright, I checked my own code more throughly once more and discovered I had the handleUpgrade method bound to httpServer twice which was wrong and caused the upgrade not to actually happen. It's highly likely that this also caused Squid to go nuts.
I fixed my code and I will go and visit that Squid-enabled network soon to see if it works now.

However, I also discovered that when I was actually able to go through the upgrade (using Chrome 18), it produces a 10+ seconds lag each time right after the upgrade before the requests actually start moving. Almost like they get queued somewhere internally and then all of a sudden they start to move, or almost like it takes 10+ seconds for any websocket traffic to actually start flowing... Is this known behaviour?

from engine.io.

martintajur avatar martintajur commented on July 18, 2024

Allright, I checked my own code more throughly once more and discovered I had the handleUpgrade method bound to httpServer twice which was wrong and caused the upgrade not to actually happen.

Btw, the reason I had this bound twice was that I didn't pay enough attention to the fact that when attaching Engine.IO to httpServer, it creates the handleUpgrade binding automatically. Perhaps it would make sense to build a simple check to avoid having double bindings?

from engine.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.