Blockstream / electrs

An efficient re-implementation of Electrum Server in Rust
MIT License
301 stars 125 forks source link

Moving duration calculation after replies are sent #75

Open rem1-dev opened 6 months ago

rem1-dev commented 6 months ago

With previous way of response generation duration calculation we were not taking into account time spend on sending replies. I think that should be included in that duration therefore this change.

shesek commented 5 months ago

This would make the reported duration depend on the client's connection speed, is this something we want?

Typically the time spent to send the response is proportional to the response size which is already reported, perhaps that's sufficient?