Code Monkey home page Code Monkey logo

Comments (3)

jamilbk avatar jamilbk commented on May 28, 2024

@conectado I was able to replicate this with just a ping to github.com and a reload of github.com on a slow network. I'm not sure how many DNS queries ping github.com is supposed to generate, but if the underlying network is slow or dropping them (e.g. hotspot), then somehow this fills the buffer, and then we get log spammed with the error message in the title.

Questions:

  • Why is Too many DNS queries printed in each iteration of the eventloop it seems? Shouldn't this correspond to when the actual DNS query was attempted?
  • Can we dedup the queries by host?
  • Can we increase the buffer much higher? 1,000 or even 5,000 might be more appropriate if we're actually filling up the buffer with valid queries.

When I see this error, the peer is dropped, so we have to get a new resource_intent for things to work again.

from firezone.

thomaseizinger avatar thomaseizinger commented on May 28, 2024
  • Why is Too many DNS queries printed in each iteration of the eventloop it seems? Shouldn't this correspond to when the actual DNS query was attempted?

It should only be per query but if the browser generates many DNS queries, we will see it a lot.

  • Can we dedup the queries by host?

Should be possible, we would need to buffer all incoming queries and answer them once the result comes back.

  • Can we increase the buffer much higher? 1,000 or even 5,000 might be more appropriate if we're actually filling up the buffer with valid queries.

Definitely. It was set to a pretty arbitrary number. We should probably also decrease the timeout from 60s to something shorter. Even on a slow network, a DNS query should resolve within 5(?)s?

from firezone.

jamilbk avatar jamilbk commented on May 28, 2024

This seemed to be a weird bug --

Steps to reproduce:

  • Connect firezone (macOS)
  • Keep browser closed
  • ping github.com
  • roam networks judiciously

I seemed to be able to hit it with just those steps, which doesn't seem to make sense.

from firezone.

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.