fix:设置缓冲区buffer,设置足够大的 oob buffer 来接收控制消息,调用 recvmsg 从 errqueue 读一条消息

This commit is contained in:
nnbcccscdscdsc
2026-03-24 13:35:40 +08:00
parent 44f39c12ed
commit b79bb082ab
2 changed files with 21 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ func TestSelectTXTimestampEventsFallsBackToHighestObservedID(t *testing.T) {
func TestLinuxTimestampingDebugLoggerCapturesChunkAndErrqueueEvents(t *testing.T) {
clientConn, serverConn := newTCPPair(t)
setTCPWriteBuffer(t, clientConn, 4096)
setTCPWriteBuffer(t, clientConn, 10*1024*1024)
debugLogger := &recordingTXTimestampDebugLogger{}
senderLogger := &recordingLogger{}