 9bdcbe0447
			
		
	
	9bdcbe0447
	
	
	
		
			
			Major integrations and fixes: - Added BACKBEAT SDK integration for P2P operation timing - Implemented beat-aware status tracking for distributed operations - Added Docker secrets support for secure license management - Resolved KACHING license validation via HTTPS/TLS - Updated docker-compose configuration for clean stack deployment - Disabled rollback policies to prevent deployment failures - Added license credential storage (CHORUS-DEV-MULTI-001) Technical improvements: - BACKBEAT P2P operation tracking with phase management - Enhanced configuration system with file-based secrets - Improved error handling for license validation - Clean separation of KACHING and CHORUS deployment stacks 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build windows
 | |
| 
 | |
| package quic
 | |
| 
 | |
| import (
 | |
| 	"errors"
 | |
| 	"syscall"
 | |
| 
 | |
| 	"golang.org/x/sys/windows"
 | |
| 
 | |
| 	"github.com/quic-go/quic-go/internal/utils"
 | |
| )
 | |
| 
 | |
| const (
 | |
| 	// IP_DONTFRAGMENT controls the Don't Fragment (DF) bit.
 | |
| 	//
 | |
| 	// It's the same code point for both IPv4 and IPv6 on Windows.
 | |
| 	// https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Networking/WinSock/constant.IP_DONTFRAG.html
 | |
| 	// https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Networking/WinSock/constant.IPV6_DONTFRAG.html
 | |
| 	//
 | |
| 	//nolint:stylecheck
 | |
| 	IP_DONTFRAGMENT = 14
 | |
| )
 | |
| 
 | |
| func setDF(rawConn syscall.RawConn) (bool, error) {
 | |
| 	var errDFIPv4, errDFIPv6 error
 | |
| 	if err := rawConn.Control(func(fd uintptr) {
 | |
| 		errDFIPv4 = windows.SetsockoptInt(windows.Handle(fd), windows.IPPROTO_IP, IP_DONTFRAGMENT, 1)
 | |
| 		errDFIPv6 = windows.SetsockoptInt(windows.Handle(fd), windows.IPPROTO_IPV6, IP_DONTFRAGMENT, 1)
 | |
| 	}); err != nil {
 | |
| 		return false, err
 | |
| 	}
 | |
| 	switch {
 | |
| 	case errDFIPv4 == nil && errDFIPv6 == nil:
 | |
| 		utils.DefaultLogger.Debugf("Setting DF for IPv4 and IPv6.")
 | |
| 	case errDFIPv4 == nil && errDFIPv6 != nil:
 | |
| 		utils.DefaultLogger.Debugf("Setting DF for IPv4.")
 | |
| 	case errDFIPv4 != nil && errDFIPv6 == nil:
 | |
| 		utils.DefaultLogger.Debugf("Setting DF for IPv6.")
 | |
| 	case errDFIPv4 != nil && errDFIPv6 != nil:
 | |
| 		return false, errors.New("setting DF failed for both IPv4 and IPv6")
 | |
| 	}
 | |
| 	return true, nil
 | |
| }
 | |
| 
 | |
| func isSendMsgSizeErr(err error) bool {
 | |
| 	// https://docs.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
 | |
| 	return errors.Is(err, windows.WSAEMSGSIZE)
 | |
| }
 | |
| 
 | |
| func isRecvMsgSizeErr(err error) bool {
 | |
| 	// https://docs.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
 | |
| 	return errors.Is(err, windows.WSAEMSGSIZE)
 | |
| }
 |