espresso-sequencer icon indicating copy to clipboard operation
espresso-sequencer copied to clipboard

Improve handling of large responses in nasty client

Open jbearer opened this issue 11 months ago • 0 comments

Some of the responses to queries like payload queries and range queries can be up to a few megabytes. This change prevents distracting spurious warnings and errors for such responses.

This PR:

  • increases the HTTP client timeout to allow plenty of time to stream the response over the network
  • only counts queries as slow if it takes longer than 1s to receive a response header -- the time it takes to stream the response does not count toward slow warnings, as this time is not taking computational resources on the server

jbearer avatar Nov 22 '24 00:11 jbearer