GithubHelp home page GithubHelp logo

Socket Disconnect Constantly about phirehose HOT 4 CLOSED

fennb avatar fennb commented on July 30, 2024
Socket Disconnect Constantly

from phirehose.

Comments (4)

DarrenCook avatar DarrenCook commented on July 30, 2024

Are you getting tweets before the socket disconnects, each time? What are some sample run times and tweet counts before each disconnect? Is it disconnecting when the feed is at its quietest, or at its noisiest?

from phirehose.

zachnoren avatar zachnoren commented on July 30, 2024

I was getting tweets before the socket disconnects pretty consistently but since I have been testing it tonight I have noticed that maybe twice out of every ten reconnects I won't get any tweets at all. It has stayed connected anywhere from about 10 minutes at the most to about 3 minutes at the usual minimum. The frequency is pretty random. I know from past experience that the average statuses/sec or consume rate usually is around 25-27. It does have its anomalies and will peak around 44. If you want some sample output I can get some from console. Also, I am not using any filters.

from phirehose.

DarrenCook avatar DarrenCook commented on July 30, 2024

Based on that, my guess would be your ISP is killing your sockets. A bit of a guess, but reasonably easy to confirm: try setting up on another server. (BTW, you are sure you do not have two instances running, trying to use this account? I imagine that would give the same behaviour you see.)

Assuming you know enough linux, you could set up on an EC2 micro instance quite quickly, easily and cheaply; if that also doesn't work it suggests the problem is your account, or your script. If it does work, it suggests the problem is your ISP or something about OSX PHP. To eliminate the latter, try and find some online Mac cloud hosting?

from phirehose.

zachnoren avatar zachnoren commented on July 30, 2024

Ugh, thanks Comcast. There was a reason I got a business class plan and it was so I could do this stuff. Tried on another server (Ubuntu 14) and the issue goes away. Also made sure I didn't have two instances running at the same time. The problem with a remote server is the storage costs are outrageous. I have enough home storage to be able to store a year's worth of data and analysis. I also can't transfer data as fast as it is coming in from a remote to my home server. I guess I don't really have any other options. I appreciate all the help and thanks for all the contributions.

from phirehose.

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.