Files
sing-box-extended-mirror/common/tlsfragment/wait_stub.go
T

19 lines
311 B
Go
Raw Normal View History

2025-01-26 09:01:00 +08:00
//go:build !(linux || darwin || windows)
package tf
import (
"context"
"net"
"time"
)
func writeAndWaitAck(ctx context.Context, conn *net.TCPConn, payload []byte, fallbackDelay time.Duration) error {
2025-08-20 02:54:47 +08:00
_, err := conn.Write(payload)
if err != nil {
return err
}
2025-01-26 09:01:00 +08:00
time.Sleep(fallbackDelay)
return nil
}