mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-07-31 12:33:20 +00:00
fix(conf): default QUIC off on the messaging path (#4084)
The structured path was the only place defaulting quicSupport to true (kernel default is false). Booting that QUIC listener SIGSEGVs in lsquic setupSSLContext, so keep QUIC opt-in until the transport is validated. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
ba28e32e58
commit
f8b036594e
@ -134,7 +134,7 @@ proc toWakuNodeConf*(
|
||||
conf.websocketPort = self.websocketPort.get(Port(0))
|
||||
conf.quicPort = self.quicPort.get(Port(0))
|
||||
conf.websocketSupport = self.websocketSupport.get(false)
|
||||
conf.quicSupport = self.quicSupport.get(true)
|
||||
conf.quicSupport = self.quicSupport.get(false)
|
||||
|
||||
return ok(conf)
|
||||
|
||||
|
||||
@ -45,27 +45,27 @@ suite "MessagingClientConf - field mapping + transport policy":
|
||||
kc.numShardsInNetwork == 4
|
||||
kc.maxMessageSize == "150KiB"
|
||||
|
||||
test "messaging transport defaults: ephemeral ports, websocket off, quic on":
|
||||
test "messaging transport defaults: ephemeral ports, websocket off, quic off":
|
||||
let kc = MessagingClientConf().toWakuNodeConf(LogosDeliveryMode.Core).valueOr:
|
||||
raiseAssert error
|
||||
check:
|
||||
kc.tcpPort == Port(0)
|
||||
kc.discv5UdpPort == Port(0)
|
||||
kc.websocketSupport == false
|
||||
kc.quicSupport == true
|
||||
kc.quicSupport == false
|
||||
|
||||
test "explicit transport overrides win":
|
||||
let mc = MessagingClientConf(
|
||||
p2pTcpPort: Opt.some(Port(1234)),
|
||||
websocketSupport: Opt.some(true),
|
||||
quicSupport: Opt.some(false),
|
||||
quicSupport: Opt.some(true),
|
||||
)
|
||||
let kc = mc.toWakuNodeConf(LogosDeliveryMode.Core).valueOr:
|
||||
raiseAssert error
|
||||
check:
|
||||
kc.tcpPort == Port(1234)
|
||||
kc.websocketSupport == true
|
||||
kc.quicSupport == false
|
||||
kc.quicSupport == true
|
||||
|
||||
suite "MessagingClientConf - preset resolution":
|
||||
test "resolvePreset lifts only messaging-exclusive fields, not kernel-mirrored ones":
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user