Coder Social home page Coder Social logo

Comments (2)

0xdiba avatar 0xdiba commented on July 29, 2024
func worker(msg []byte, ch *amqp.Channel) {

  <-sem
  defer releaseSemaphore()

  certs, ip, err := tlsretriever.CheckHost(string(msg), "443", true) //<-sometimes code does not return 
  panicIf(err)
  if certs == nil {
      log.Println("no certificate retrieved from", string(msg))
          return
  }

After some debugging ( seeing that limiting the resources used does not solve the problem )
I observed random behavior regarding the actual certificate retrieval made. For example, using specific domains ( google.com and amazon.com ) and after several tests the calculated retrieval success rate was 1890-1995/2000 requests. No errors were printed from the checkhost function.

After some more debugging it seems that the code gets stuck here:

conn, err := tls.Dial("tcp", canonicalName, &config)

in the tlsretriever package.

Searching the TLS Go code I found that the default timeout for this connection is no timeout but it still
doesn't make sense to me that it happens only a couple of times.

from tls-observatory.

0xdiba avatar 0xdiba commented on July 29, 2024

We must see if the new implementation fixes anything
bd6992d

from tls-observatory.

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.