szmarczak / http-timer

🕐 Performance timings for HTTP requests
MIT License
192 stars 18 forks source link

Incorrect upload measurement #19

Closed szmarczak closed 3 years ago

szmarczak commented 4 years ago

As you can see the upload timing is present even though the socket timing is missing:

    timings: {
      abort: undefined,
      connect: undefined,
      end: undefined,
      error: 1582646820391,
      lookup: undefined,
      phases: {
        dns: undefined,
        download: undefined,
        firstByte: undefined,
        request: NaN,
        tcp: undefined,
        tls: undefined,
        total: 0,
        wait: undefined,
      },
      response: undefined,
      secureConnect: undefined,
      socket: undefined,
      start: 1582646820391,
      upload: 1582646820391
    }

The error message is Timeout awaiting 'socket' for 300ms. (using the timed-out Got internal module)

/cc @jgehrcke

szmarczak commented 3 years ago

Not reproducible anymore.