piker/piker
Gud Boi 762c59d7c7 Fix IB idle timer arithmetic for packet nanoseconds
Override `NonShittyWrapper._setTimer()` to compute packet silence
in seconds from integer epoch nanoseconds, avoiding upstream's
`datetime` subtraction error after `tcpDataArrived()`. Delegate
pre-traffic datetime and sentinel handling upstream.

Preserve the packet timestamp on expiry and clear the timer before
`timeoutEvent` emission so listeners can safely rearm it. Add three
offline regressions under `tests/providers/` for rescheduling, single
expiry, datetime and sentinel states, disabling, and reentrant
listener rearming. Document the wrapper overrides on the class.

This fixes an explicitly armed packet-idle timer; heartbeat, default
arming, and reconnect behavior are outside this change.

Prompt-IO: ai/prompt-io/opencode/20260924_ib_idle_timer.md

(this patch was generated in some part by `opencode` using
`gpt-6-astra` (`openai`))
2026-11-03 09:43:39 -05:00
..
accounting .clearing: lazily spawn `brokerd` from `emsd` 2026-06-10 13:12:59 -04:00
brokers Fix IB idle timer arithmetic for packet nanoseconds 2026-11-03 09:43:39 -05:00
clearing Preserve IB order state through notices and late fills 2026-10-30 18:50:06 -04:00
cli brokerd: slim RPC caps + `ib` client-id offset 2026-06-10 13:14:24 -04:00
data Use `datad` names for quote timestamps and search 2026-11-03 09:35:27 -05:00
fsp Use `datad` names for quote timestamps and search 2026-11-03 09:35:27 -05:00
service Use `datad` names for quote timestamps and search 2026-11-03 09:35:27 -05:00
storage Own gap overlays in chart-local `GapOverlayMngr` 2026-08-14 19:03:11 -04:00
testing Pass a config `tmp_dir: Path` to the runtime when testing 2023-03-09 15:37:43 -05:00
toolz Delegate `.toolz.open_crash_handler()` to `tractor.devx` 2024-01-16 10:26:38 -05:00
tsp Retry incomplete IB schedule coverage 2026-09-24 20:20:20 -04:00
ui Adjust to `trio>=0.34.0` invalid `Event` truthy checks 2026-10-30 15:33:39 -04:00
watchlists Add license headers to pertinent files 2020-11-06 12:23:14 -05:00
__init__.py Start `piker.service` sub-package 2023-03-09 15:37:42 -05:00
_cacheables.py Move `._cacheables.open_cached_client()` into `.brokers` pkg mod 2023-06-27 13:41:47 -04:00
calc.py Retry incomplete IB schedule coverage 2026-09-24 20:20:20 -04:00
config.py Fix `pytest` config-dir isolation in subactors 2026-06-10 13:10:09 -04:00
log.py Fix package logger names for daemon startup 2026-10-21 16:07:53 -04:00
types.py Point `.types.Struct` to `tractor.msg.pretty_struct` 2026-02-22 16:07:53 -05:00