Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 79 for leaky (0.97 sec)

  1. internal/lru/lru.go

    }
    
    // Remove removes e from its list, decrements l.len
    func (l *LruList[K, V]) Remove(e *Entry[K, V]) V {
    	e.prev.next = e.next
    	e.next.prev = e.prev
    	e.next = nil // avoid memory leaks
    	e.prev = nil // avoid memory leaks
    	e.list = nil
    	l.len--
    
    	return e.Value
    }
    
    // move moves e to next to at.
    func (l *LruList[K, V]) move(e, at *Entry[K, V]) {
    	if e == at {
    		return
    	}
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Fri Apr 25 08:22:26 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. cmd/dynamic-timeouts.go

    	if duration < 0 {
    		return
    	}
    	entries := int(atomic.AddInt64(&dt.entries, 1))
    	index := entries - 1
    	if index < dynamicTimeoutLogSize {
    		dt.mutex.Lock()
    		dt.log[index] = duration
    
    		// We leak entries while we copy
    		if entries == dynamicTimeoutLogSize {
    			// Make copy on stack in order to call adjust()
    			logCopy := [dynamicTimeoutLogSize]time.Duration{}
    			copy(logCopy[:], dt.log[:])
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_2x.md

        client.networkInterceptors().add(loggingInterceptor);
        ```
    
        **Warning:** Avoid `Level.HEADERS` and `Level.BODY` in production because
        they could leak passwords and other authentication credentials to insecure
        logs.
    
     *  **WebSocket API now uses `RequestBody` and `ResponseBody` for messages.**
        This is a backwards-incompatible API change.
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

                // Force release the handle with null checks
                if (this.usageCount != null) {
                    this.usageCount.set(0);
                }
    
                // Clear references to prevent memory leaks
                try {
                    if (this.treeConnection != null) {
                        // Release the tree connection if possible
                        log.debug("Releasing tree connection during emergency cleanup");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/BufferCacheImplTest.java

            // Fill with non-zero to verify zeroing on release
            for (int i = 0; i < b.length; i++) {
                b[i] = (byte) (i + 1);
            }
    
            // Act: release should zero immediately to avoid leaks
            impl.releaseBuffer(b);
    
            // Assert: original array is zeroed in-place
            for (byte value : b) {
                assertEquals(0, value, "Released buffer must be zeroed");
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_3x.md

        edge-case regression introduced with the events cleanup in 3.14.0.
    
     *  Fix: Provide actionable advice when the exchange is non-null. Prior to 3.14, OkHttp would
        silently leak connections when an interceptor retries without closing the response body. With
        3.14 we detect this problem but the exception was not helpful.
    
    ## Version 3.14.0
    
    _2019-03-14_
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 14:55:54 UTC 2022
    - 50.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFileHandleImpl.java

                log.error("Error during file handle finalization", e);
            } finally {
                super.finalize();
            }
        }
    
        /**
         * Emergency cleanup method to prevent resource leaks during finalization
         */
        private void emergencyCloseHandle() {
            try {
                synchronized (this) {
                    // Force close the handle
                    this.open = false;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

              if (taskFuture.isDone()) {
                // Since the value of oldFuture can only ever be immediateFuture(null) or setFuture of
                // a future that eventually came from immediateFuture(null), this doesn't leak
                // throwables or completion values.
                newFuture.setFuture(oldFuture);
              } else if (outputFuture.isCancelled() && taskExecutor.trySetCancelled()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/GcFinalization.java

     *   public boolean isDone() {
     *     return map.isEmpty();
     *   }
     * });
     * }
     *
     * <p>Even if your non-test code does not use finalization, you can use this class to test for
     * leaks, by ensuring that objects are no longer strongly referenced:
     *
     * {@snippet :
     * // Helper function keeps victim stack-unreachable.
     * private WeakReference<Foo> fooWeakRef() {
     *   Foo x = ....;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. docs/changelogs/changelog_1x.md

     * Fix: Use strict timeouts when aborting a download.
     * Fix: Support Shoutcast HTTP responses like `ICY 200 OK`.
     * Fix: Don't unzip if there isn't a response body.
     * Fix: Don't leak gzip streams on redirects.
     * Fix: Don't do DNS lookups on invalid hosts.
     * Fix: Exhaust the underlying stream when reading gzip streams.
     * Fix: Support the `PATCH` method.
     * Fix: Support request bodies on `DELETE` method.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 6.4K bytes
    - Viewed (0)
Back to top