Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 141 for connc (0.05 sec)

  1. internal/grid/connection.go

    }
    
    // monitorState will monitor the state of the connection and close the net.Conn if it changes.
    func (c *Connection) monitorState(conn net.Conn, cancel context.CancelCauseFunc) {
    	c.connChange.L.Lock()
    	defer c.connChange.L.Unlock()
    	for {
    		newState := c.State()
    		if newState != StateConnected {
    			conn.Close()
    			cancel(ErrDisconnected)
    			return
    		}
    		// Unlock and wait for state change.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/inet/TcpConnectorTest.groovy

            when:
            def acceptor = incomingConnector.accept({ ConnectCompletion event ->
                def conn = event.create(serializer)
                conn.dispatch("bye")
                conn.stop()
                instant.closed
            } as Action, false)
    
            def connection = outgoingConnector.connect(acceptor.address).create(serializer)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  3. api/go1.9.txt

    pkg database/sql, method (*Conn) BeginTx(context.Context, *TxOptions) (*Tx, error)
    pkg database/sql, method (*Conn) Close() error
    pkg database/sql, method (*Conn) ExecContext(context.Context, string, ...interface{}) (Result, error)
    pkg database/sql, method (*Conn) PingContext(context.Context) error
    pkg database/sql, method (*Conn) PrepareContext(context.Context, string) (*Stmt, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtunnel_test.go

    		_, err := httpstream.Handshake(req, w, []string{constants.PortForwardV1Name})
    		require.NoError(t, err)
    		upgrader := spdy.NewResponseUpgrader()
    		conn := upgrader.UpgradeResponse(w, req, justQueueStream(streamChan))
    		require.NotNil(t, conn)
    		defer conn.Close() //nolint:errcheck
    		<-stopServerChan
    	}))
    	defer spdyServer.Close()
    	// Create UpgradeAwareProxy handler, with url/transport pointing to upstream SPDY. Then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 02:21:50 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  5. internal/grid/benchmark_test.go

    						if src == dst {
    							dst = (dst + 1) % len(managers)
    						}
    						local := managers[src]
    						conn := local.Connection(hosts[dst])
    						if conn == nil {
    							b.Fatal("No connection")
    						}
    						// Send the payload.
    						t := time.Now()
    						resp, err := conn.Request(ctx, handlerTest, payload)
    						latency += time.Since(t).Nanoseconds()
    						if err != nil {
    							if debugReqs {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  6. cmd/peer-s3-client.go

    	return buckets, nil
    }
    
    func (client *remotePeerS3Client) HealBucket(ctx context.Context, bucket string, opts madmin.HealOpts) (madmin.HealResultItem, error) {
    	conn := client.gridConn()
    	if conn == nil {
    		return madmin.HealResultItem{}, nil
    	}
    
    	mss := grid.NewMSSWith(map[string]string{
    		peerS3Bucket:        bucket,
    		peerS3BucketDeleted: strconv.FormatBool(opts.Remove),
    	})
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. src/net/mockserver_test.go

    }
    
    func startTestSocketPeer(t testing.TB, conn Conn, op string, chunkSize, totalSize int) (func(t testing.TB), error) {
    	t.Helper()
    
    	if runtime.GOOS == "windows" {
    		// TODO(panjf2000): Windows has not yet implemented FileConn,
    		//		remove this when it's implemented in https://go.dev/issues/9503.
    		t.Fatalf("startTestSocketPeer is not supported on %s", runtime.GOOS)
    	}
    
    	f, err := conn.(interface{ File() (*os.File, error) }).File()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. cmd/peer-rest-client.go

    	conn := client.gridConn()
    	if conn == nil {
    		return nil
    	}
    	_, err := reloadPoolMetaRPC.Call(ctx, conn, grid.NewMSSWith(map[string]string{}))
    	return err
    }
    
    func (client *peerRESTClient) StopRebalance(ctx context.Context) error {
    	conn := client.gridConn()
    	if conn == nil {
    		return nil
    	}
    	_, err := stopRebalanceRPC.Call(ctx, conn, grid.NewMSSWith(map[string]string{}))
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. internal/kms/kms.go

    	// MinKMS, MinKES or Builtin.
    	Type Type
    
    	// The default key, used for generating new data keys
    	// if no explicit GenerateKeyRequest.Name is provided.
    	DefaultKey string
    
    	conn conn // Connection to the KMS
    
    	// Metrics
    	reqOK, reqErr, reqFail atomic.Uint64
    	latencyBuckets         []time.Duration // expected to be sorted
    	latency                []atomic.Uint64
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware_test.go

    			proxyURL, _ := url.Parse(proxy.URL)
    
    			conn, err := net.Dial("tcp", proxyURL.Host)
    			require.NoError(t, err)
    			bufferedReader := bufio.NewReader(conn)
    
    			// Send upgrade request resulting in a non-101 response from the backend
    			req, _ := http.NewRequest("GET", "/", nil)
    			req.Header.Set(httpstream.HeaderConnection, httpstream.HeaderUpgrade)
    			require.NoError(t, req.Write(conn))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 10 07:29:34 UTC 2023
    - 39.4K bytes
    - Viewed (0)
Back to top