Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for toSend (0.11 sec)

  1. internal/grid/benchmark_test.go

    				for i := 0; i < responses; i++ {
    					toSend := GetByteBuffer()[:0]
    					toSend = append(toSend, byte(i))
    					toSend = append(toSend, payload...)
    					select {
    					case <-ctx.Done():
    						return nil
    					case out <- toSend:
    					}
    				}
    				return nil
    			},
    
    			Subroute:    "some-subroute",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. internal/grid/connection.go

    				}
    			}
    			var err error
    			toSend, err = pingFrame.MarshalMsg(GetByteBuffer()[:0])
    			if err != nil {
    				gridLogIf(ctx, err)
    				// Fake it...
    				atomic.StoreInt64(&c.LastPong, time.Now().UnixNano())
    				continue
    			}
    		case toSend = <-c.outQueue:
    			if len(toSend) == 0 {
    				continue
    			}
    		}
    		if len(queue) < maxMergeMessages && queueSize+len(toSend) < writeBufferSize-1024 && len(c.outQueue) > 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  3. internal/grid/muxserver.go

    }
    
    // sendResponses will send responses to the client.
    func (m *muxServer) sendResponses(ctx context.Context, toSend <-chan []byte, c *Connection, handlerErr *atomic.Pointer[RemoteErr], outBlock <-chan struct{}) {
    	for {
    		// Process outgoing message.
    		var payload []byte
    		var ok bool
    		select {
    		case payload, ok = <-toSend:
    		case <-ctx.Done():
    			return
    		}
    		select {
    		case <-ctx.Done():
    			return
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/cmd/token.go

    			BootstrapToken: bootstraptokenv1.BootstrapToken{
    				Token:       &bootstraptokenv1.BootstrapTokenString{ID: token.Token.ID, Secret: token.Token.Secret},
    				Description: token.Description,
    				TTL:         token.TTL,
    				Expires:     token.Expires,
    				Usages:      token.Usages,
    				Groups:      token.Groups,
    			},
    		}
    
    		if err := printer.PrintObj(&outputToken, out); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 05:47:48 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  5. tests/integration/security/authz_test.go

    						},
    						{
    							prefix: "[Token2]",
    							jwt:    jwt.TokenIssuer2,
    							path:   "/token1",
    							allow:  false,
    						},
    						{
    							prefix: "[Token2]",
    							jwt:    jwt.TokenIssuer2,
    							path:   "/token2",
    							allow:  true,
    						},
    						{
    							prefix: "[Token3]",
    							jwt:    jwt.TokenIssuer1,
    							path:   "/token3",
    							allow:  false,
    						},
    						{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 50.1K bytes
    - Viewed (0)
  6. tests/integration/security/testdata/authz/jwt.yaml.tmpl

    # - Allow request principal ******@****.***/sub-1 to access path /token1
    # - Allow request in group-2 to access path /token2
    # - Allow request with any token to access path /tokenAny
    # - Allow request with permission claim of "write" or "append" to access path /permission
    # - Allow request with valid JWT token to access path /jwt1
    # - Allow request with valid JWT token of presenter bar to access path with suffix "/presenter"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. pkg/controller/bootstrap/bootstrapsigner.go

    			tokenID := strings.TrimPrefix(key, bootstrapapi.JWSSignatureKeyPrefix)
    			sigs[tokenID] = value
    			delete(newCM.Data, key)
    		}
    	}
    
    	// Now recompute signatures and store them on the new map
    	tokens := e.getTokens(ctx)
    	for tokenID, tokenValue := range tokens {
    		sig, err := jws.ComputeDetachedSignature(content, tokenID, tokenValue)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/css/javadoc.css

        background-image:none;
        float:none;
        display:inline;
    }
    .overviewSummary .tabEnd, .memberSummary .tabEnd, .typeSummary .tabEnd,
    .useSummary .tabEnd, .constantsSummary .tabEnd, .deprecatedSummary .tabEnd,
    .requiresSummary .tabEnd, .packagesSummary .tabEnd, .providesSummary .tabEnd, .usesSummary .tabEnd {
        display:none;
        width:5px;
        position:relative;
        float:left;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 09 14:25:49 UTC 2024
    - 50.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheEncryptionIntegrationTest.groovy

        }
    
        private boolean isFoundInDirectory(File startDir, byte[] toFind) {
            try (Stream<Path> tree = Files.walk(startDir.toPath(), FileVisitOption.FOLLOW_LINKS)) {
                return tree.filter { it.toFile().file }
                    .anyMatch {
                        isSubArray(Files.readAllBytes(it), toFind)
                    }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/security/oauth2-jwt.md

        {!> ../../../docs_src/security/tutorial004.py!}
        ```
    
    ## Update the dependencies
    
    Update `get_current_user` to receive the same token as before, but this time, using JWT tokens.
    
    Decode the received token, verify it, and return the current user.
    
    If the token is invalid, return an HTTP error right away.
    
    === "Python 3.10+"
    
        ```Python hl_lines="90-107"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 17:37:28 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top