Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 106 for reuse (0.4 sec)

  1. internal/http/close.go

    //
    // Subsequently this allows golang http RoundTripper
    // to reuse the same connection for future requests.
    func DrainBody(respBody io.ReadCloser) {
    	// Callers should close resp.Body when done reading from it.
    	// If resp.Body is not closed, the Client's underlying RoundTripper
    	// (typically Transport) may not be able to reuse a persistent TCP
    	// connection to the server for a subsequent "keep-alive" request.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. internal/grid/handlers.go

    		s.callReuseReq = true
    	}
    	return &s
    }
    
    // PutResponse will accept a response for reuse.
    // This can be used by a caller to recycle a response after receiving it from a Call.
    func (h *SingleHandler[Req, Resp]) PutResponse(r Resp) {
    	h.recycleResp(r)
    }
    
    // AllowCallRequestPool indicates it is safe to reuse the request
    // on the client side, meaning the request is recycled/pooled when a request is sent.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  3. cmd/metacache-entries.go

    	return res
    }
    
    // metaCacheEntriesSorted contains metacache entries that are sorted.
    type metaCacheEntriesSorted struct {
    	o metaCacheEntries
    	// list id is not serialized
    	listID string
    	// Reuse buffers
    	reuse bool
    	// Contain the last skipped object after an ILM expiry evaluation
    	lastSkippedEntry string
    }
    
    // shallowClone will create a shallow clone of the array objects,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:43:43 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  4. internal/grid/README.md

    The wrapper will handle all serialization and de-seralization of the request and response,
    and furthermore provides reuse of the structs used for the request and response.
    
    Note that Responses sent for serialization are automatically reused for similar requests.
    If the response contains shared data it will cause issues, since each unique response is reused.
    To disable this behavior, use `(SingleHandler).WithSharedResponse()` to disable it.
    
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/ReusePlan.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.connection
    
    /** Reuse a connection from the pool. */
    internal class ReusePlan(
      val connection: RealConnection,
    ) : RoutePlanner.Plan {
      override val isReady = true
    
      override fun connectTcp() = error("already connected")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

      }
    
      override fun isOutputShutdown(): Boolean {
        return delegate!!.isOutputShutdown
      }
    
      @Throws(SocketException::class)
      override fun setReuseAddress(reuse: Boolean) {
        delegate!!.reuseAddress = reuse
      }
    
      @Throws(SocketException::class)
      override fun getReuseAddress(): Boolean {
        return delegate!!.reuseAddress
      }
    
      @Throws(SocketException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

                connectionUser.releaseConnectionNoEvents()
              }
              else -> null
            }
          }
    
        // If the call's connection wasn't released, reuse it. We don't call connectionAcquired() here
        // because we already acquired it.
        if (connectionUser.candidateConnection() != null) {
          check(toClose == null)
          return ReusePlan(candidate)
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMapEntry.java

     * buckets for the key and the value. This allows reuse in {@link RegularImmutableMap} and {@link
     * RegularImmutableBiMap}, which don't have to recopy the entries created by their {@code Builder}
     * implementations.
     *
     * <p>This base implementation has no key or value pointers, so instances of ImmutableMapEntry (but
     * not its subclasses) can be reused when copied from one ImmutableMap to another.
     *
     * @author Louis Wasserman
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt

        )
    
        fun noNewExchanges()
    
        fun cancel()
      }
    
      companion object {
        /**
         * The timeout to use while discarding a stream of input data. Since this is used for connection
         * reuse, this timeout should be significantly less than the time it takes to establish a new
         * connection.
         */
        const val DISCARD_STREAM_TIMEOUT_MILLIS = 100
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Connection.kt

     *    negotiate HTTP/2.
     *
     * Unfortunately, older HTTPS servers refuse to connect when such options are presented. Rather than
     * avoiding these options entirely, this class allows a connection to be attempted with modern
     * options and then retried without them should the attempt fail.
     *
     * ## Connection Reuse
     *
     * Each connection can carry a varying number of streams, depending on the underlying protocol being
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.3K bytes
    - Viewed (0)
Back to top