Commit Graph
44 Commits
Author SHA1 Message Date
Jay 9dadaf6b6d update docs 2026-06-07 09:24:19 -04:00
Jay df14aeddaf change id to url semantics 2026-06-07 09:17:23 -04:00
Jay 697d02950c broke up session loop 2026-06-07 09:14:13 -04:00
Jay 4b7e68c8fc misc post-refactor fixes, refinements 2026-06-07 09:08:45 -04:00
Jay 60de9534dc docs: update README and CONFIG for post-refactor API 2026-06-06 20:42:31 -04:00
Jay fe119b3f36 fixed deadlock risk, cleaned up tests 2026-06-06 20:09:05 -04:00
Jay 08d2ff3317 Add RequestHeader to PoolConfig; default User-Agent header 2026-06-06 20:02:38 -04:00
Jay 35428a4dad Wire pool-level Retire closure; emit EventRetired on terminal dial failure 2026-06-06 19:50:58 -04:00
Jay 7657de160e Add worker self-retire on terminal dial failure 2026-06-06 19:41:45 -04:00
Jay 1977fb385a refactor: phase 3 integrated new dialing pattern into pool 2026-06-06 18:32:52 -04:00
Jay a46e9f7ad8 refactor: phase 2 integrated new dialer into worker 2026-06-06 17:32:03 -04:00
Jay 7bc576ed98 refactor: phase 1, splitting connection and retry responsibilities in transport package. 2026-06-05 17:38:42 -04:00
Jay 3ea4393876 Set 10s TCP dial timeout on GorillaDialer via NetDialContext 2026-06-04 20:36:52 -04:00
Jay ef2304f327 docs: document EventDialFailed in README and EXTEND 2026-06-04 20:18:38 -04:00
Jay 503c43d3f0 pool: add EventDialFailed integration tests 2026-06-04 20:15:39 -04:00
Jay 16554211ae worker_test: assert exact error value in EventDialFailed 2026-06-04 19:56:45 -04:00
Jay 84aa9aaf98 test: replace manual config struct literals with constructors 2026-06-04 19:56:00 -04:00
Jay a6d412c31d pool/worker: add EventDialFailed with per-attempt error 2026-06-04 19:34:40 -04:00
Jay a574b3e5ae transport: thread onDialError through Connection.Connect 2026-06-04 19:31:12 -04:00
Jay 3001c36c2c transport: add onDialError callback to AcquireSocket 2026-06-04 19:01:33 -04:00
Jay 5f6bc368ad chore: bump go-mana-component to v0.2.0 2026-06-03 23:23:54 -04:00
Jay d04341bfa2 docs: update README, CONFIG, EXTEND for config/dialer refactoring 2026-05-26 15:08:33 -04:00
Jay 8c1371e3a0 pool: add ConnectOption/WithDialer for per-call dialer override on Connect 2026-05-26 14:59:03 -04:00
Jay d4da16f82a transport: copy-on-intake in NewConnection/NewPool; add ConnectionConfig.Clone; remove SetDialer; dialer via config 2026-05-26 14:46:10 -04:00
Jay 695389798e config: add Dialer field to ConnectionConfig and PoolConfig with option constructors 2026-05-26 14:17:58 -04:00
Jay fac62c0675 config: flatten WorkerConfig to value type in PoolConfig 2026-05-26 14:13:40 -04:00
Jay c82e0184f5 config: flatten ConnectionConfig to value type in PoolConfig 2026-05-26 14:11:03 -04:00
Jay c4d35fe6fa transport: flatten RetryConfig to value type, replace nil sentinel with Disabled bool 2026-05-26 14:01:14 -04:00
Jay bcbdb79b32 fix logging_test: align expected log levels to current source 2026-05-26 13:43:09 -04:00
Jay a721eabd48 place attribute on handler 2026-05-21 17:02:07 -04:00
Jay f144a2a724 update logging 2026-05-21 08:19:37 -04:00
Jay 90c0783953 increment year 2026-05-20 23:03:44 -04:00
Jay c8c8a528f6 cleanup 2026-05-20 23:03:06 -04:00
Jay f1afca7921 cleanup and refactors 2026-05-20 22:49:25 -04:00
Jay cda6d286ab refactor(worker): collapse session goroutines into single runSession loop
Replace the five-goroutine session model (RunDialer, RunKeepalive,
RunReader, RunHeartbeatForwarder, RunStopMonitor, Session) with a single
DefaultWorker.runSession method containing two select loops: one
pre-connection and one connected. Ephemeral dial goroutines replace
RunDialer; the keepalive timer and heartbeat reset are inlined. No
exported building-block symbols remain.

Consolidate worker_dialer_test.go, worker_session_test.go, and
worker_start_test.go into worker_test.go. Add seven new behavioral
tests covering dial failure, keepalive-driven dial replacement,
pre-connection stop, message delivery with timestamp, sustained
activity and pong resetting the keepalive timer, keepalive-triggered
reconnect, and nil connection pointer after disconnect.
Update EXTEND.md and README.md to remove references to the deleted

building blocks and document the single worker replacement pattern
2026-05-20 18:17:04 -04:00
Jay b44a46ed2f Migrate logging to go-mana-component; delete logging/ package
Replaces the flat key-value logging scheme with component-based structured
logging via go-mana-component. Each layer (pool, worker, connection) builds
its own component identity and derives a *slog.Logger from a caller-supplied
slog.Handler.

- Delete logging/ package (logging.go, logging_test.go)
- Strip LoggingEnabled and LogLevel from ConnectionConfig, PoolConfig,
 WorkerConfig; remove associated option funcs
- Change NewConnection and NewConnectionFromSocket to accept ctx and
 slog.Handler instead of *slog.Logger; constructors build component
 identity via MustNew/MustExtend internally
- Change WorkerFactory, NewWorker, connect, and RunDialer to carry
 slog.Handler; remove PoolPlugin.Handler
- Change NewPool to establish pool component identity via MustNew;
 remove pool_id field, PoolPlugin.ID, and ErrInvalidPoolID
- Fix data race in MockSlogHandler: WithAttrs now shares parent mutex
 pointer rather than allocating a new one per child
- Run go fix
2026-05-20 13:04:58 -04:00
Jay 5b31db304a Updated documentation. 2026-05-20 10:44:53 -04:00
Jay 59f7b86a2e minor fixes 2026-05-20 09:05:49 -04:00
Jay ecd036b4eb Remove deprecated worker fields 2026-05-20 08:57:27 -04:00
Jay 6facb6eed0 remove references to the queue 2026-05-20 08:53:46 -04:00
Jay 093a56ea56 gut inbound and queue. promote outbound to honeybee. 2026-05-20 08:46:13 -04:00
Jay ba5484e0dd collapse queue/forwarder path: reader writes directly to pool inbox 2026-05-20 08:37:44 -04:00
Jay 8c7e3c3ee6 fix RunDialer: drain dial signals only after successful connect 2026-05-20 08:19:46 -04:00
Jay 09257e39b4 refactor: add idle watchgod to transport 2026-05-20 08:10:02 -04:00