Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isEADDRINUSE (3.9 sec)

  1. src/net/dial_unix_test.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package net
    
    import (
    	"context"
    	"errors"
    	"syscall"
    	"testing"
    	"time"
    )
    
    func init() {
    	isEADDRINUSE = func(err error) bool {
    		return errors.Is(err, syscall.EADDRINUSE)
    	}
    }
    
    // Issue 16523
    func TestDialContextCancelRace(t *testing.T) {
    	oldConnectFunc := connectFunc
    	oldGetsockoptIntFunc := getsockoptIntFunc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top