Closed plicease closed 1 year ago
LGTM, but there was conflict that should be resolved.
LGTM, but there was conflict that should be resolved.
Right, this originally included the commit from #133 , in case you only wanted to merge that :) I've force pushed with just the commit that adds the fractional timeouts.
This includes #133 and adds what I proposed in #134 to use f64 instead of i64 to get fractional timeouts. It still has #133's awkwardness, which I am happy to correct with guidance.
Using the
set_read_timeout
andset_write_timeout
you could use a millisecond duration, but there is no such interface for the connect timeout, and I think this would be a more consistent approach, while still being backward compatible.