aquatic: save valid_until Instant in connections and requests

Hopefully prevents strange subtraction overflow error, but
we'll see.
This commit is contained in:
Joakim Frostegård 2020-04-12 22:02:54 +02:00
parent 587096f76f
commit 06ff4ad9d0
5 changed files with 47 additions and 44 deletions

View file

@ -1,7 +1,6 @@
# TODO
## aquatic
* `thread 'main' panicked at 'overflow when subtracting duration from instant', src/libstd/time.rs:374:9`
* Use bounded request channel?
* Handle Ipv4 and Ipv6 peers. Probably split state. Ipv4 peers can't make
use of Ipv6 ones. Ipv6 ones may or may note be able to make use of Ipv4
@ -19,6 +18,7 @@
# Not important
* No overflow on instant + duration arithmetic now, hopefully?
* extract_response_peers
* Cleaner code
* Stack-allocated vector?