Update:
So it looks like the failures happen less often if i reduce the frame rate.
10 fps:
1) 6 minutes
2) didnt fail, stopped after 12 minutes
3) 4 minutes
30 fps:
1) 1 minute
2) 20 seconds
3) 1 minute
60 fps:
1) 2 minutes
2) 2 minutes
3) 40 seconds
from the publisher side these are the logs that happen during the failure.
publisher-app-1 | 2025-01-08T13:22:50.345Z INFO pion-ice/candidate_base.go:335 dst adddrr12.12.12.12:59346
publisher-app-1 | DEBU[0295] writing 121 bytes chSeq=-1 connId=6 edgeSeq=6010 type=EdgeDataType
publisher-app-1 | DEBU[0295] received 12 bytes (msg type: 60785) chSeq=564 connId=6 edgeSeq=51 type=EdgeStateClosedType
publisher-app-1 | DEBU[0295] received ConnState_CLOSED message, closing connection connId=6 marker=JVZ1tqBX
publisher-app-1 | DEBU[0295] close: begin connId=6 marker=JVZ1tqBX
publisher-app-1 | DEBU[0295] close: end connId=6 marker=JVZ1tqBX
publisher-app-1 | turnc DEBUG: 13:22:50.347394 client.go:181: Failed to read: EOF. Exiting loop
publisher-app-1 | 2025-01-08T13:22:50.386Z INFO publisher/main.go:290 9051
publisher-app-1 | 2025-01-08T13:22:50.386Z INFO pion-ice/candidate_base.go:335 dst adddrr12.12.12.12:59346
publisher-app-1 | ice INFO: 2025/01/08 13:22:50 Failed to send packet: calling Write() after CloseWrite()
I keep comming back to this ziti edge router error:
ziti-edge-router-1 | [7471.082] ERROR ziti/router/xgress_common.(*XgressConn).WritePayload: {error=[crypto failed]} crypto failed on msg of size=1237, headers=map[]
ziti-edge-router-1 | [7471.082] WARNING ziti/router/xgress.(*Xgress).tx.func3 [{c/bkeKilRaP|@/3EDr}<Terminator>]: {circuitId=[bkeKilRaP] seq=[83186] origin=[Initiator]} write failed (crypto failed), closing xgress
ziti-edge-router-1 | [7471.083] WARNING ziti/router/xgress.(*Xgress).rx [{c/bkeKilRaP|@/3EDr}<Terminator>]: read failed (read udp 12.12.12.2:58480->12.12.12.12:3478: use of closed network connection)
ziti-edge-router-1 | [7471.083] INFO ziti/router/xgress.(*Xgress).flushSendThenClose.func1 [{c/bkeKilRaP|@/3EDr}<Terminator>]: sending end of circuit payload
crypto failed
- could this be the reason ziti sends to publisher Constate_CLOSED?