mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
* fix(core): fail a Docker call after 30 seconds when its connection pool is full With no connection-request timeout set, a call that could not lease a pooled connection waited httpclient5's default three minutes before failing. A full pool means the emulator is saturated, so the wait is now configurable through floci.docker.connection-request-timeout-seconds (default 30), applied to both pools. The transport retry already treats a lease timeout as pool exhaustion and never replays it, so the call fails once, after the timeout. * fix(core): reject a Docker lease timeout below one second httpclient5 reads a zero connection-request timeout as no timeout, so floci.docker.connection-request-timeout-seconds=0 let a call on a full pool wait forever, and a negative value reached the client unchecked. It now has to be at least 1, checked the way the two pool sizes are, through one helper that names the setting and its environment variable. The two producer tests that build the beans from a mocked config now stub the timeout; they ran with zero before. The lease test's socket list is shared with the acceptor thread, so it is a concurrent list.