Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 377 for CTX (0.01 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. cmd/bootstrap-peer-server.go

    					offlineEndpoints = append(offlineEndpoints, fmt.Errorf("%s is unreachable: %w", clnt, grid.ErrDisconnected))
    					mu.Unlock()
    					return
    				}
    
    				ctx, cancel := context.WithTimeout(ctx, 2*time.Second)
    				defer cancel()
    
    				err := clnt.Verify(ctx, srcCfg)
    				mu.Lock()
    				if err != nil {
    					bootstrapTraceMsg(fmt.Sprintf("bootstrapVerify: %v, endpoint: %s", err, clnt))
    					if !isNetworkError(err) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Oct 01 22:13:18 GMT 2024
    - 8.4K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/core/naming/InitialContextUtil.java

         *             Thrown if the initial context cannot be created.
         */
        public static Object lookup(final InitialContext ctx, final String jndiName) throws NamingRuntimeException {
            assertArgumentNotNull("ctx", ctx);
            assertArgumentNotEmpty("jndiName", jndiName);
    
            try {
                return ctx.lookup(jndiName);
            } catch (final NamingException ex) {
                throw new NamingRuntimeException(ex);
            }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/CredentialsInternalTest.java

                tc.getConfig();
                tc.getCredentials();
    
                // Minimal behavior: return a mock SSPContext with lenient stubbing
                SSPContext ctx = mock(SSPContext.class);
                lenient().when(ctx.isEstablished()).thenReturn(false);
                return ctx;
            }
    
            @Override
            public Subject getSubject() {
                return this.subject;
            }
    
            @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  4. internal/config/identity/plugin/config.go

    // service.
    func (o *AuthNPlugin) checkConnectivity(ctx context.Context) bool {
    	ctx, cancel := context.WithTimeout(ctx, healthCheckTimeout)
    	defer cancel()
    	u := url.URL(*o.args.URL)
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodHead, u.String(), nil)
    	if err != nil {
    		authNLogIf(ctx, err)
    		return false
    	}
    
    	if o.args.AuthToken != "" {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 13.3K bytes
    - Click Count (0)
  5. internal/config/lambda/target/webhook.go

    		return errNotConnected
    	}
    
    	return nil
    }
    
    // NewWebhookTarget - creates new Webhook target.
    func NewWebhookTarget(ctx context.Context, id string, args WebhookArgs, loggerOnce logger.LogOnce, transport *http.Transport) (*WebhookTarget, error) {
    	ctx, cancel := context.WithCancel(ctx)
    
    	target := &WebhookTarget{
    		id:         event.TargetID{ID: id, Name: "webhook"},
    		args:       args,
    		loggerOnce: loggerOnce,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Mon Jul 08 21:39:49 GMT 2024
    - 6.7K bytes
    - Click Count (0)
  6. internal/lsync/lrwmutex.go

    }
    
    // GetLock tries to get a write lock on lm before the timeout occurs.
    func (lm *LRWMutex) GetLock(ctx context.Context, id string, source string, timeout time.Duration) (locked bool) {
    	const isWriteLock = true
    	return lm.lockLoop(ctx, id, source, timeout, isWriteLock)
    }
    
    // RLock holds a read lock on lm.
    //
    // If one or more read lock are already in use, it will grant another lock.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Click Count (0)
  7. cmd/warm-backend-minio.go

    		return minPartSize, nil
    	}
    	return partSize, nil
    }
    
    func (m *warmBackendMinIO) PutWithMeta(ctx context.Context, object string, r io.Reader, length int64, meta map[string]string) (remoteVersionID, error) {
    	partSize, err := optimalPartSize(length)
    	if err != nil {
    		return remoteVersionID(""), err
    	}
    	res, err := m.client.PutObject(ctx, m.Bucket, m.getDest(object), r, length, minio.PutObjectOptions{
    		StorageClass:         m.StorageClass,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 4K bytes
    - Click Count (1)
  8. cmd/speedtest.go

    			result.Version = Version
    			result.Concurrent = concurrency
    
    			select {
    			case ch <- result:
    			case <-ctx.Done():
    				return
    			}
    		}
    
    		for {
    			select {
    			case <-ctx.Done():
    				// If the client got disconnected stop the speedtest.
    				return
    			default:
    			}
    
    			sopts := speedTestOpts{
    				objectSize:      opts.objectSize,
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue May 27 15:19:03 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  9. generics_withresult_test.go

    		t.Fatalf("open db failed: %v", err)
    	}
    	if err := db.AutoMigrate(&withResultUser{}); err != nil {
    		t.Fatalf("migrate failed: %v", err)
    	}
    
    	ctx := context.Background()
    
    	u := withResultUser{Name: "with-result-ok"}
    	r := gorm.WithResult()
    	if err := gorm.G[withResultUser](db, r).Create(ctx, &u); err != nil {
    		t.Fatalf("create failed: %v", err)
    	}
    	if u.ID == 0 {
    		t.Fatalf("expected ID to be set")
    	}
    	if r.Error != nil {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:34:24 GMT 2026
    - 1.2K bytes
    - Click Count (0)
  10. internal/http/listener.go

    		return listener, listenErrs
    	}
    	listeners = slices.Clip(listeners)
    
    	ctx, cancel := context.WithCancel(ctx)
    	listener = &httpListener{
    		listeners:   listeners,
    		acceptCh:    make(chan acceptResult, len(listeners)),
    		opts:        opts,
    		ctxDoneCh:   ctx.Done(),
    		ctxCanceler: cancel,
    	}
    	opts.Trace(fmt.Sprintf("opening %d listeners", len(listener.listeners)))
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 5.8K bytes
    - Click Count (0)
Back to Top