Git Product home page Git Product logo

distributor's People

Contributors

jeremyj-dbx avatar markchucarroll avatar palpant-dbx avatar zorkian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

distributor's Issues

Burst of "broken pipe" errors

We are periodically seeing large bunches of
2016/11/28 20:04:05 [ERROR] Failed to bencode: write tcp X.X.X.X:6390->Y.Y.Y.Y:18014: write: broken pipe errors.

We'll see a lot of them over a period of a minute or two, and then no more. During this, there are also many open sockets in CLOSE_WAIT state. In some cases it recovers, but sometimes it runs out of fds and then crashes. It appears that this is somewhat load related, as it only shows up under heavy use. Over-aggressive retrying from ctorrent could definitely compound this (e.g.: if we fall behind and ctorrent retries timed out announces).

This seems to have started showing up after #17, so it might be due to the decreased Interval. It could also be due to the inefficient method of removing old peers. If we have a large peer list, we need to iterate over it on each announce. Previously, we only did so on new peers.

Possible solutions:

  • Increase the interval back to the previous value, and likewise increase the timeout
  • Only clean up old peers when we're attempting to hand them out

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.