- Sort Score
- Num 10 results
- Language All
Results 161 - 170 of 522 for reusing (0.06 seconds)
-
guava/src/com/google/common/base/Ticker.java
public abstract long read(); /** * A ticker that reads the current time using {@link System#nanoTime}. * * @since 10.0 */ public static Ticker systemTicker() { return SYSTEM_TICKER; } private static final Ticker SYSTEM_TICKER = new Ticker() { @Override @SuppressWarnings("GoodTime") // reading system time without TimeSource public long read() {
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 1.8K bytes - Click Count (0) -
docs/auditlog/auditlog-echo.go
flag.IntVar(&port, "port", 8080, "Port to listen on") } func mainHandler(w http.ResponseWriter, r *http.Request) { body, err := io.ReadAll(r.Body) defer r.Body.Close() if err != nil { log.Printf("Error reading request body: %v", err) w.WriteHeader(http.StatusBadRequest) return } log.Printf(">>> %s %s\n", r.Method, r.URL.Path) var out bytes.Buffer json.Indent(&out, body, "", " ")
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Wed May 01 21:31:13 GMT 2024 - 1.5K bytes - Click Count (0) -
internal/http/close.go
// 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. if respBody != nil { // Drain any remaining Body and then close the connection. // Without this closing connection would disallow re-using // the same connection for future uses.
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 1.7K bytes - Click Count (0) -
src/test/java/jcifs/netbios/SessionServicePacketTest.java
IOException exception = assertThrows(IOException.class, () -> { SessionServicePacket.readPacketType(bais, buffer, 0); }); assertEquals("unexpected EOF reading netbios session header", exception.getMessage()); } @Test @DisplayName("readPacketType should throw IOException on incomplete header") void testReadPacketTypeIncompleteHeader() {Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
disconnectBeforeTrailers(Protocol.HTTP_1_1) } @Test fun disconnectBeforeTrailersHttp2() { disconnectBeforeTrailers(Protocol.HTTP_2) } /** Confirm we can get an [IOException] reading trailers. */ private fun disconnectBeforeTrailers(protocol: Protocol) { enableProtocol(protocol) server.enqueue( MockResponse .Builder() .trailers(headersOf("t1", "v2"))
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 08 21:45:04 GMT 2025 - 18.8K bytes - Click Count (0) -
internal/mountinfo/mountinfo_linux.go
if mount.Path != path { crossMounts = append(crossMounts, mount) } } } msg := `Cross-device mounts detected on path (%s) at following locations %s. Export path should not have any sub-mounts, refusing to start.` if len(crossMounts) > 0 { // if paths didn't match then we do have cross-device mount. return fmt.Errorf(msg, path, crossMounts) } return nil }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Feb 18 16:25:55 GMT 2025 - 4.7K bytes - Click Count (0) -
src/main/java/jcifs/netbios/SessionServicePacket.java
int n = readn(in, buffer, bufferIndex, HEADER_LENGTH); if (n != HEADER_LENGTH) { if (n == -1) { return -1; } throw new IOException("unexpected EOF reading netbios session header"); } return buffer[bufferIndex] & 0xFF; } int type, length; /** * Writes the packet to the specified byte array in wire format. *
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 5.2K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2.kt
import okio.ByteString.Companion.encodeUtf8 object Http2 { @JvmField val CONNECTION_PREFACE = "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n".encodeUtf8() /** The initial max frame size, applied independently writing to, or reading from the peer. */ const val INITIAL_MAX_FRAME_SIZE = 0x4000 // 16384 const val TYPE_DATA = 0x0 const val TYPE_HEADERS = 0x1 const val TYPE_PRIORITY = 0x2 const val TYPE_RST_STREAM = 0x3Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 5.7K bytes - Click Count (0) -
android/guava/src/com/google/common/io/ByteSink.java
/** * Writes all the bytes from the given {@code InputStream} to this sink. Does not close {@code * input}. * * @return the number of bytes written * @throws IOException if an I/O occurs while reading from {@code input} or writing to this sink */ @CanIgnoreReturnValue public long writeFrom(InputStream input) throws IOException { checkNotNull(input); try (OutputStream out = openStream()) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 4.9K bytes - Click Count (0) -
guava/src/com/google/common/io/ByteSink.java
/** * Writes all the bytes from the given {@code InputStream} to this sink. Does not close {@code * input}. * * @return the number of bytes written * @throws IOException if an I/O occurs while reading from {@code input} or writing to this sink */ @CanIgnoreReturnValue public long writeFrom(InputStream input) throws IOException { checkNotNull(input); try (OutputStream out = openStream()) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 4.9K bytes - Click Count (0)