immobiliare / RealHTTP

🌀swift async http client - fast, lightweight, type-safe
MIT License
282 stars 28 forks source link

Crash initializing HTTPMetrics Stage object with invalid DateInterval #46

Closed malcommac closed 2 years ago

malcommac commented 2 years ago

Bug Report

Sometimes the start and end data are received in the wrong order (end happens before start).
It usually happens with domainLookupStartDate (start) and responseEndDate objects.
While we've deeply investigated the issue no further evidence is found.
In order to fix the issue and prevents any crash, we will add a check upon these variables in order to fix their timing order.

image