Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 152 for mandel (0.21 sec)

  1. docs/en/docs/tutorial/response-model.md

    ### `response_model` Priority
    
    If you declare both a return type and a `response_model`, the `response_model` will take priority and be used by FastAPI.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  2. internal/grid/grid_test.go

    					continue
    				}
    				err = resp.Err
    			}
    			t.Log("Client Context canceled. err state:", err)
    			clientCanceled <- time.Now()
    		}(t)
    		start := time.Now()
    		cancel()
    		<-serverCanceled
    		t.Log("server cancel time:", time.Since(start))
    		clientEnd := <-clientCanceled
    		if !errors.Is(err, context.Canceled) {
    			t.Error("expected context.Canceled, got", err)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            Proxy.Type.DIRECT, Proxy.Type.HTTP -> route.address.socketFactory.createSocket()!!
            else -> Socket(route.proxy)
          }
        this.rawSocket = rawSocket
    
        // Handle the race where cancel() precedes connectSocket(). We don't want to miss a cancel.
        if (canceled) {
          throw IOException("canceled")
        }
    
        rawSocket.soTimeout = socketReadTimeoutMillis
        try {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

        inFinished: Boolean,
      ) {
        pushQueue.execute("$connectionName[$streamId] onHeaders") {
          val cancel = pushObserver.onHeaders(streamId, requestHeaders, inFinished)
          ignoreIoExceptions {
            if (cancel) writer.rstStream(streamId, ErrorCode.CANCEL)
            if (cancel || inFinished) {
              this.withLock {
                currentPushRequests.remove(streamId)
              }
            }
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

            exchange.bodyComplete<IOException?>(-1L, responseDone = true, requestDone = true, e = null)
          }
    
          override fun cancel() {
            exchange.cancel()
          }
        }
      }
    
      override fun route(): Route = route
    
      override fun cancel() {
        // Close the raw socket so we don't end up doing synchronous I/O.
        rawSocket?.closeQuietly()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  6. cmd/server-main.go

    		}
    		ip := "127.0.0.1"
    		host, _ := mustSplitHostPort(globalLocalNodeName)
    		if host != "" {
    			if net.ParseIP(host) != nil {
    				ip = host
    			} else {
    				ctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
    				defer cancel()
    
    				haddrs, err := globalDNSCache.LookupHost(ctx, host)
    				if err == nil {
    					ip = haddrs[0]
    				}
    			}
    		}
    		ifs, _ := net.Interfaces()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 34.9K bytes
    - Viewed (1)
  7. cni/pkg/iptables/iptables.go

    	optionalDeleteCmds := [][]string{
    		// flush-then-delete our created chains
    		{"-t", iptablesconstants.MANGLE, "-F", ChainInpodPrerouting},
    		{"-t", iptablesconstants.MANGLE, "-F", ChainInpodOutput},
    		{"-t", iptablesconstants.NAT, "-F", ChainInpodOutput},
    		{"-t", iptablesconstants.MANGLE, "-X", ChainInpodPrerouting},
    		{"-t", iptablesconstants.MANGLE, "-X", ChainInpodOutput},
    		{"-t", iptablesconstants.NAT, "-X", ChainInpodOutput},
    	}
    
    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)
  8. cmd/storage-rest-client.go

    		// transport is already down.
    		return info, errDiskNotFound
    	}
    
    	// if 'NoOp' we do not cache the value.
    	if opts.NoOp {
    		ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
    		defer cancel()
    
    		opts.DiskID = *client.diskID.Load()
    
    		infop, err := storageDiskInfoRPC.Call(ctx, client.gridConn, &opts)
    		if err != nil {
    			return info, toStorageErr(err)
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      @Throws(IOException::class)
      internal fun cancelStreamIfNecessary() {
        lock.assertNotHeld()
    
        val open: Boolean
        val cancel: Boolean
        this.withLock {
          cancel = !source.finished && source.closed && (sink.finished || sink.closed)
          open = isOpen
        }
        if (cancel) {
          // RST this stream to prevent additional data from being sent. This is safe because the input
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  10. cmd/erasure-server-pool-rebalance.go

    	z.rebalMu.Lock()
    	defer z.rebalMu.Unlock()
    
    	r := z.rebalMeta
    	if r == nil { // rebalance not running in this node, nothing to do
    		return nil
    	}
    
    	if cancel := r.cancel; cancel != nil {
    		// cancel != nil only on pool leaders
    		r.cancel = nil
    		cancel()
    	}
    	return nil
    }
    
    // for rebalance trace support
    type rebalanceMetrics struct{}
    
    var globalRebalanceMetrics rebalanceMetrics
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
Back to top