Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isEADDRINUSE (0.17 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)
  2. src/net/dial_test.go

    		}
    		if !deadline.Equal(tt.expectDeadline) {
    			t.Errorf("#%d: got %v; want %v", i, deadline, tt.expectDeadline)
    		}
    	}
    }
    
    // isEADDRINUSE reports whether err is syscall.EADDRINUSE.
    var isEADDRINUSE = func(err error) bool { return false }
    
    func TestDialerLocalAddr(t *testing.T) {
    	if !supportsIPv4() || !supportsIPv6() {
    		t.Skip("both IPv4 and IPv6 are required")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
Back to top