• Felix Lange's avatar
    p2p/discover: fix Windows-specific issue for larger-than-buffer packets · 2871781f
    Felix Lange authored
    On Windows, UDPConn.ReadFrom returns an error for packets larger
    than the receive buffer. The error is not marked temporary, causing
    our loop to exit when the first oversized packet arrived. The fix
    is to treat this particular error as temporary.
    
    Fixes: #1579, #2087
    Updates: #2082
    2871781f
udp_test.go 14.5 KB