Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Ying (0.17 sec)

  1. internal/http/transports.go

    	// 		// ReadIdleTimeout is the timeout after which a health check using ping
    	// 		// frame will be carried out if no frame is received on the
    	// 		// connection. 5 minutes is sufficient time for any idle connection.
    	// 		trhttp2.ReadIdleTimeout = 5 * time.Minute
    	// 		// PingTimeout is the timeout after which the connection will be closed
    	// 		// if a response to Ping is not received.
    	// 		trhttp2.PingTimeout = dialTimeout
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jan 30 00:50:37 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  2. tests/connpool_test.go

    	return c.Tx.QueryRowContext(ctx, query, args...)
    }
    
    type wrapperConnPool struct {
    	db     *sql.DB
    	got    []string
    	expect []string
    }
    
    func (c *wrapperConnPool) Ping() error {
    	return c.db.Ping()
    }
    
    // If you use BeginTx returned *sql.Tx as shown below then you can't record queries in a transaction.
    //
    //	func (c *wrapperConnPool) BeginTx(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error) {
    Go
    - Registered: Sun Apr 21 09:35:09 GMT 2024
    - Last Modified: Tue Feb 06 02:54:40 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  3. internal/grid/msg.go

    const (
    	// OpConnect is a connect request.
    	OpConnect Op = iota + 1
    
    	// OpConnectResponse is a response to a connect request.
    	OpConnectResponse
    
    	// OpPing is a ping request.
    	// If a mux id is specified that mux is pinged.
    	// Clients send ping requests.
    	OpPing
    
    	// OpPong is a OpPing response returned by the server.
    	OpPong
    
    	// OpConnectMux will connect a new mux with optional payload.
    	OpConnectMux
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 28 19:22:29 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  4. internal/event/target/postgresql.go

    	if err := target.init(); err != nil {
    		return false, err
    	}
    	return target.isActive()
    }
    
    func (target *PostgreSQLTarget) isActive() (bool, error) {
    	if err := target.db.Ping(); err != nil {
    		if IsConnErr(err) {
    			return false, store.ErrNotConnected
    		}
    		return false, err
    	}
    	return true, nil
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  5. cmd/metacache-server-pool.go

    	// 3) Returning, with ID, stream from list.
    	//
    	// If we don't have a list id we must ask the server if it has a cache or create a new.
    	if o.ID != "" && !o.Transient {
    		// Create or ping with handout...
    		rpc := globalNotificationSys.restClientFromHash(pathJoin(o.Bucket, o.Prefix))
    		var c *metacache
    		if rpc == nil {
    			resp := localMetacacheMgr.getBucket(ctx, o.Bucket).findCache(*o)
    			c = &resp
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  6. internal/grid/muxclient.go

    			}
    		case <-pingTimer:
    			if time.Since(time.Unix(atomic.LoadInt64(&m.LastPong), 0)) > clientPingInterval*2 {
    				m.addErrorNonBlockingClose(respHandler, ErrDisconnected)
    				return
    			}
    			// Send new ping.
    			gridLogIf(m.ctx, m.send(message{Op: OpPing, MuxID: m.MuxID}))
    		}
    	}
    }
    
    // responseCh is the channel to that goes to the requester.
    // internalResp is the channel that comes from the server.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  7. internal/event/target/nats.go

    	NATSSubject       = "subject"
    	NATSUsername      = "username"
    	NATSPassword      = "password"
    	NATSToken         = "token"
    	NATSTLS           = "tls"
    	NATSTLSSkipVerify = "tls_skip_verify"
    	NATSPingInterval  = "ping_interval"
    	NATSQueueDir      = "queue_dir"
    	NATSQueueLimit    = "queue_limit"
    	NATSCertAuthority = "cert_authority"
    	NATSClientCert    = "client_cert"
    	NATSClientKey     = "client_key"
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Feb 27 18:11:55 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  8. cmd/listen-notification-handlers.go

    		if peer == nil {
    			continue
    		}
    		peer.Listen(ctx, mergeCh, values)
    	}
    
    	var (
    		emptyEventTicker <-chan time.Time
    		keepAliveTicker  <-chan time.Time
    	)
    
    	if p := values.Get("ping"); p != "" {
    		pingInterval, err := strconv.Atoi(p)
    		if err != nil {
    			writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidQueryParams), r.URL)
    			return
    		}
    		if pingInterval < 1 {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  9. cmd/erasure-object.go

    			// Prefer local disks
    			prefer[index] = disk.Hostname() == ""
    		}
    
    		written, err := erasure.Decode(ctx, writer, readers, partOffset, partLength, partSize, prefer)
    		// Note: we should not be defer'ing the following closeBitrotReaders() call as
    		// we are inside a for loop i.e if we use defer, we would accumulate a lot of open files by the time
    		// we return from this function.
    		closeBitrotReaders(readers)
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 76.3K bytes
    - Viewed (2)
  10. cmd/consolelogger.go

    	console  *console.Target
    	nodeName string
    	logBuf   *ring.Ring
    }
    
    // NewConsoleLogger - creates new HTTPConsoleLoggerSys with all nodes subscribed to
    // the console logging pub sub system
    func NewConsoleLogger(ctx context.Context) *HTTPConsoleLoggerSys {
    	return &HTTPConsoleLoggerSys{
    		pubsub:  pubsub.New[log.Info, madmin.LogMask](8),
    		console: console.New(),
    		logBuf:  ring.New(defaultLogBufferCount),
    	}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 02 00:13:57 GMT 2024
    - 5.4K bytes
    - Viewed (0)
Back to top