[Twisted-Python] IReactorTime.seconds: epoch time or no?
Richard van der Hoff
richard at matrix.org
Mon Mar 23 13:45:18 MDT 2020
HTTPFactory seems to think that `reactor.seconds` is reliably an epoch
time (see
https://github.com/twisted/twisted/blob/trunk/src/twisted/web/http.py#L3110,
etc).
On the other hand. AsyncioSelectorReactor.seconds() returns a monotonic
time:
python3 -c 'from twisted.internet import asyncioreactor;
print(asyncioreactor.AsyncioSelectorReactor().seconds())'
41116.763594412
One of these is wrong... I think it's HTTPFactory making bad
assumptions, but can anyone confirm the intention here?
R
More information about the Twisted-Python
mailing list