Add WaitReady() channel to RPC server that signals when the socket is listening and ready to accept connections. Previously daemon startup waited a fixed 2 seconds which could fail if the server took longer. Changes: - Add readyChan to Server struct - Signal ready after listener bind completes - Update daemon startup to wait on WaitReady() channel - Increase timeout to 5s with proper signaling This fixes multi-repo daemon routing test failures where daemon would start but not be ready to handle requests within the timeout window. Amp-Thread-ID: https://ampcode.com/threads/T-675a2db5-b1b3-480d-a108-b003d8139d08 Co-authored-by: Amp <amp@ampcode.com>
26 KiB
26 KiB