feat(batch17): port inbound, header, and service-import client features

This commit is contained in:
Joseph Doherty
2026-02-28 19:18:37 -05:00
parent 1baba5ac0e
commit 8d5964efff
5 changed files with 298 additions and 4 deletions

View File

@@ -181,6 +181,20 @@ public class ProtocolParserTests
Encoding.ASCII.GetString(c.ArgBuf!).ShouldBe("foo 1");
}
[Fact]
public void ClientConnection_InboundDispatchAndPingIntervalHelpers_ShouldBehave()
{
var c = new ClientConnection(ClientKind.Client);
var before = DateTime.UtcNow;
c.ProcessInboundMsg(Encoding.ASCII.GetBytes("hello"));
c.LastIn.ShouldBeGreaterThan(before - TimeSpan.FromMilliseconds(1));
ClientConnection.AdjustPingInterval(ClientKind.Router, TimeSpan.FromHours(1))
.ShouldBeLessThan(TimeSpan.FromHours(1));
ClientConnection.AdjustPingInterval(ClientKind.Gateway, TimeSpan.FromHours(1))
.ShouldBeLessThan(TimeSpan.FromHours(1));
}
// =====================================================================
// TestParsePub — Go test ID 2602
// =====================================================================