Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 141 for connc (0.37 sec)

  1. src/net/http/socks_bundle.go

    	}
    	port := strconv.Itoa(a.Port)
    	if a.IP == nil {
    		return net.JoinHostPort(a.Name, port)
    	}
    	return net.JoinHostPort(a.IP.String(), port)
    }
    
    // A Conn represents a forward proxy connection.
    type socksConn struct {
    	net.Conn
    
    	boundAddr net.Addr
    }
    
    // BoundAddr returns the address assigned by the proxy server for
    // connecting to the command target address from the proxy server.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 22:42:18 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  2. pkg/client/tests/remotecommand_test.go

    	}
    	if conn != upgrader.conn {
    		t.Errorf("unexpected connection: %#v", conn)
    	}
    	if !upgrader.called {
    		t.Errorf("request not called")
    	}
    	_ = protocol
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 05 06:08:18 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  3. src/crypto/tls/bogo_shim_test.go

    		}
    
    		conn, err := net.Dial("tcp", net.JoinHostPort("localhost", *port))
    		if err != nil {
    			log.Fatalf("dial err: %s", err)
    		}
    		defer conn.Close()
    
    		// Write the shim ID we were passed as a little endian uint64
    		shimIDBytes := make([]byte, 8)
    		byteorder.LePutUint64(shimIDBytes, *shimID)
    		if _, err := conn.Write(shimIDBytes); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/devicemanager/plugin/v1beta1/stub.go

    		m.server.Serve(sock)
    	}()
    
    	var lastDialErr error
    	wait.PollImmediate(1*time.Second, 10*time.Second, func() (bool, error) {
    		var conn *grpc.ClientConn
    		_, conn, lastDialErr = dial(m.socket)
    		if lastDialErr != nil {
    			return false, nil
    		}
    		conn.Close()
    		return true, nil
    	})
    	if lastDialErr != nil {
    		return lastDialErr
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 11:19:10 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_test.go

    }
    
    // recordingConn is a net.Conn that records the traffic that passes through it.
    // WriteTo can be used to produce output that can be later be loaded with
    // ParseTestData.
    type recordingConn struct {
    	net.Conn
    	sync.Mutex
    	flows   [][]byte
    	reading bool
    }
    
    func (r *recordingConn) Read(b []byte) (n int, err error) {
    	if n, err = r.Conn.Read(b); n == 0 {
    		return
    	}
    	b = b[:n]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  6. src/net/timeout_test.go

    }
    
    // Issue 35367.
    func TestConcurrentSetDeadline(t *testing.T) {
    	ln := newLocalListener(t, "tcp")
    	defer ln.Close()
    
    	const goroutines = 8
    	const conns = 10
    	const tries = 100
    
    	var c [conns]Conn
    	for i := 0; i < conns; i++ {
    		var err error
    		c[i], err = Dial(ln.Addr().Network(), ln.Addr().String())
    		if err != nil {
    			t.Fatal(err)
    		}
    		defer c[i].Close()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 18:06:55 UTC 2024
    - 30K bytes
    - Viewed (0)
  7. src/database/sql/fakedb_test.go

    	openCount  int        // conn opens
    	closeCount int        // conn closes
    	waitCh     chan struct{}
    	waitingCh  chan struct{}
    	dbs        map[string]*fakeDB
    }
    
    type fakeConnector struct {
    	name string
    
    	waiter func(context.Context)
    	closed bool
    }
    
    func (c *fakeConnector) Connect(context.Context) (driver.Conn, error) {
    	conn, err := fdriver.Open(c.name)
    	conn.(*fakeConn).waiter = c.waiter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. pilot/test/xds/fake.go

    func (f *FakeDiscoveryServer) ConnectADS() *xds.AdsTest {
    	conn, err := grpc.Dial("buffcon",
    		grpc.WithTransportCredentials(insecure.NewCredentials()),
    		grpc.WithBlock(),
    		grpc.WithContextDialer(func(context.Context, string) (net.Conn, error) {
    			return f.BufListener.Dial()
    		}))
    	if err != nil {
    		f.t.Fatalf("failed to connect: %v", err)
    	}
    	return xds.NewAdsTest(f.t, conn)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 16:08:52 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. src/net/smtp/smtp_test.go

    		}
    	}
    
    	go func() {
    		conn, err := ln.Accept()
    		if err != nil {
    			t.Errorf("server: accept: %v", err)
    			return
    		}
    		defer conn.Close()
    
    		_, err = conn.Write([]byte("220 SIGNS\r\n"))
    		if err != nil {
    			t.Errorf("server: write: %v", err)
    			return
    		}
    	}()
    
    	config.InsecureSkipVerify = true
    	conn, err := tls.Dial("tcp", ln.Addr().String(), &config)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

    import org.apache.http.conn.DnsResolver;
    import org.apache.http.conn.HttpClientConnectionManager;
    import org.apache.http.conn.routing.HttpRoutePlanner;
    import org.apache.http.conn.socket.ConnectionSocketFactory;
    import org.apache.http.conn.socket.LayeredConnectionSocketFactory;
    import org.apache.http.conn.socket.PlainConnectionSocketFactory;
    import org.apache.http.conn.ssl.NoopHostnameVerifier;
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu May 09 09:28:25 UTC 2024
    - 41K bytes
    - Viewed (0)
Back to top