Fix tlsfragment fallback writeAndWaitAck

This commit is contained in:
dyhkwong
2025-08-20 02:54:47 +08:00
committed by 世界
parent f1dd0dba78
commit ee02532ab5
3 changed files with 10 additions and 0 deletions

View File

@@ -9,6 +9,10 @@ import (
)
func writeAndWaitAck(ctx context.Context, conn *net.TCPConn, payload []byte, fallbackDelay time.Duration) error {
_, err := conn.Write(payload)
if err != nil {
return err
}
time.Sleep(fallbackDelay)
return nil
}