Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 104 for Jack (0.16 sec)

  1. internal/grid/muxclient.go

    		h := xxh3.Hash(dst)
    		dst = binary.LittleEndian.AppendUint32(dst, uint32(h))
    	}
    	return m.parent.send(m.ctx, dst)
    }
    
    // RequestStateless will send a single payload request and stream back results.
    // req may not be read/written to after calling.
    // TODO: Not implemented
    func (m *muxClient) RequestStateless(h HandlerID, req []byte, out chan<- Response) {
    	if m.init {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/ztunnelserver.go

    				log.Errorf("failed to handle conn: %v", err)
    			}
    		}()
    	}
    }
    
    // ZDS protocol is very simple, for every message sent, and ack is sent.
    // the ack only has temporal correlation (i.e. it is the first and only ack msg after the message was sent)
    // All this to say, that we want to make sure that message to ztunnel are sent from a single goroutine
    // so we don't mix messages and acks.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  3. tests/prepared_stmt_test.go

    )
    
    func TestPreparedStmt(t *testing.T) {
    	tx := DB.Session(&gorm.Session{PrepareStmt: true})
    
    	if _, ok := tx.ConnPool.(*gorm.PreparedStmtDB); !ok {
    		t.Fatalf("should assign PreparedStatement Manager back to database when using PrepareStmt mode")
    	}
    
    	ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
    	defer cancel()
    	txCtx := tx.WithContext(ctx)
    
    	user := *GetUser("prepared_stmt", Config{})
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 21 07:55:43 GMT 2024
    - 4K bytes
    - Viewed (0)
  4. internal/handlers/proxy.go

    			// these quotes.
    			addr = strings.Trim(match[1], `"`)
    		}
    	}
    
    	return addr
    }
    
    // GetSourceIPRaw retrieves the IP from the request headers
    // and falls back to r.RemoteAddr when necessary.
    // however returns without bracketing.
    func GetSourceIPRaw(r *http.Request) string {
    	addr := GetSourceIPFromHeaders(r)
    	if addr == "" {
    		addr = r.RemoteAddr
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  5. internal/lsync/lrwmutex.go

    }
    
    const (
    	lockRetryInterval = 50 * time.Millisecond
    )
    
    // lockLoop will acquire either a read or a write lock
    //
    // The call will block until the lock is granted using a built-in
    // timing randomized back-off algorithm to try again until successful
    func (lm *LRWMutex) lockLoop(ctx context.Context, id, source string, timeout time.Duration, isWriteLock bool) (locked bool) {
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  6. tests/embedded_struct_test.go

    	}
    
    	if hnPost.Title != "embedded_pointer_type" {
    		t.Errorf("Should find correct value for embedded pointer type")
    	}
    
    	if hnPost.Author != nil {
    		t.Errorf("Expected to get back a nil Author but got: %v", hnPost.Author)
    	}
    
    	now := time.Now().Round(time.Second)
    	NewPost := HNPost{
    		BasePost: &BasePost{Title: "embedded_pointer_type2"},
    		Author: &Author{
    			Name:        "test",
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Oct 26 03:58:13 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  7. istioctl/pkg/dashboard/dashboard.go

    func portForward(podName, namespace, flavor, urlFormat, localAddress string, remotePort int,
    	client kube.CLIClient, writer io.Writer, browser bool,
    ) error {
    	// port preference:
    	// - If --listenPort is specified, use it
    	// - without --listenPort, prefer the remotePort but fall back to a random port
    	var portPrefs []int
    	if listenPort != 0 {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Apr 15 01:29:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  8. cni/pkg/iptables/iptables.go

    		"-s", hostProbeSNAT.String(),
    		"-p", "tcp",
    		"-m", "tcp",
    		"-j", "ACCEPT",
    	)
    
    	// CLI: -t NAT -A ISTIO_OUTPUT -d 169.254.7.127 -p tcp -m tcp -j ACCEPT
    	//
    	// DESC: Anything coming BACK from the pod healthcheck port with a dest of our SNAT-ed hostside IP
    	// we also short-circuit.
    	iptablesBuilder.AppendRule(
    		iptableslog.UndefinedCommand, ChainInpodOutput, iptablesconstants.NAT,
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 19.6K bytes
    - Viewed (0)
  9. internal/event/target/amqp.go

    			Body:         data,
    		}); err != nil {
    		return err
    	}
    
    	// check for publisher confirms only if its enabled
    	if target.args.PublisherConfirms {
    		confirmed := <-confirms
    		if !confirmed.Ack {
    			return fmt.Errorf("failed delivery of delivery tag: %d", confirmed.DeliveryTag)
    		}
    	}
    
    	return nil
    }
    
    // Save - saves the events to the store which will be replayed when the amqp connection is active.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 10K bytes
    - Viewed (0)
  10. cmd/storage-datatypes.go

    	Erasure ErasureInfo `msg:"ei"`
    
    	MarkDeleted      bool             `msg:"md"` // mark this version as deleted
    	ReplicationState ReplicationState `msg:"rs"` // Internal replication state to be passed back in ObjectInfo
    
    	Data []byte `msg:"d,allownil"` // optionally carries object data
    
    	NumVersions      int       `msg:"nv"`
    	SuccessorModTime time.Time `msg:"smt"`
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 15.3K bytes
    - Viewed (0)
Back to top