Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for dropped (0.07 sec)

  1. src/test/java/jcifs/smb/BufferCacheImplTest.java

            // Subsequent get should still work
            assertEquals(4, impl.getBuffer().length);
        }
    
        // Capacity behavior: when full, additional releases are dropped; only cached buffers are returned
        @Test
        @DisplayName("Cache capacity respected: extra releases dropped; retrieval order by first free slot")
        void cacheCapacityAndRetrievalOrder() {
            BufferCacheImpl impl = new BufferCacheImpl(2, 3);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbTreeImpl.java

            if (usage == 0) {
                synchronized (this) {
                    log.debug("Usage dropped to zero, release session");
                    if (this.sessionAcquired.compareAndSet(true, false)) {
                        this.session.release();
                    }
                }
            } else if (usage < 0) {
                log.error("Usage count dropped below zero " + this);
                dumpResource();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeConnection.java

                        }
                    }
                }
            } else if (usage < 0) {
                log.error("Usage count dropped below zero " + this);
                throw new RuntimeCIFSException("Usage count dropped below zero");
            }
        }
    
        /**
         * Close the tree connection (implements AutoCloseable)
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

       *
       * @throws IllegalStateException if the response is closed.
       * @throws IOException if the trailers cannot be loaded, such as if the network connection is
       *     dropped.
       */
      @Throws(IOException::class)
      fun trailers(): Headers = trailersSource.get()
    
      /**
       * Returns the trailers after the HTTP response, if they are available to read immediately. Unlike
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

                                session.release();
                            }
                        }
                    } catch (Exception e) {
                        if (!e.getMessage().contains("Usage count dropped below zero")) {
                            exceptions.add(e);
                        }
                    } finally {
                        endLatch.countDown();
                    }
                });
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

            final long us = this.usageCount.decrementAndGet();
            if (us == 0) {
                this.treeConnection.release();
            } else if (us < 0) {
                throw new RuntimeCIFSException("Usage count dropped below zero");
            }
        }
    
        @Override
        protected void finalize() throws Throwable {
            try {
                // Add null check to prevent NPE if object was not fully constructed
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/transport/Transport.java

            }
    
            if (usage == 0) {
                if (log.isTraceEnabled()) {
                    log.trace("Transport usage dropped to zero " + this);
                }
            } else if (usage < 0) {
                throw new RuntimeCIFSException("Usage count dropped below zero");
            }
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#finalize()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTreeConnectionTraceTest.java

            RuntimeException ex = assertThrows(RuntimeException.class, trace::release);
            assertTrue(ex.getMessage() != null && ex.getMessage().contains("Usage count dropped below zero"));
        }
    
        @Test
        @DisplayName("getTreeId(): no tree returns -1")
        void getTreeId_noTree_returnsMinusOne() {
            // Arrange
            CIFSContext ctx = mock(CIFSContext.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SIDTest.java

                // Act: type USER, decrement true
                SID sid = new SID(st, jcifs.SID.SID_TYPE_USER, "DOM", "alice", true);
    
                // Assert: last element dropped
                assertEquals("S-1-5-10-20", sid.toString());
                assertEquals("DOM", sid.getDomainName());
                assertEquals("alice", sid.getAccountName());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. src/archive/tar/strconv.go

    		if c >= 0x80 || c == 0x00 {
    			return false
    		}
    	}
    	return true
    }
    
    // toASCII converts the input to an ASCII C-style string.
    // This is a best effort conversion, so invalid characters are dropped.
    func toASCII(s string) string {
    	if isASCII(s) {
    		return s
    	}
    	b := make([]byte, 0, len(s))
    	for _, c := range s {
    		if c < 0x80 && c != 0x00 {
    			b = append(b, byte(c))
    		}
    	}
    	return string(b)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Sep 08 17:08:20 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top