- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 146 for respCh (0.04 seconds)
-
src/test/java/jcifs/http/NtlmHttpFilterTest.java
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 12.8K bytes - Click Count (0) -
internal/config/lambda/target/webhook.go
case 1: req.Header.Set("Authorization", "Bearer "+target.args.AuthToken) } resp, err := target.httpClient.Do(req) if err != nil { if xnet.IsNetworkOrHostDown(err, true) { return false, errNotConnected } return false, err } xhttp.DrainBody(resp.Body) // No network failure i.e response from the target means its up return true, nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Mon Jul 08 21:39:49 GMT 2024 - 6.7K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java
SmbComNTCreateAndXResponse resp = new SmbComNTCreateAndXResponse() { @Override int readHeaderWireFormat(byte[] buffer, int bufferIndex) { return 33; } }; // Set command to NT_CREATE_ANDX and mark extended resp.command = ServerMessageBlock.SMB_COM_NT_CREATE_ANDX; resp.isExtended = true; byte[] buf = new byte[256];
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.5K bytes - Click Count (0) -
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.
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/smb1/smb1/SmbSessionTest.java
// prepare a dummy request/response using a real SMB block type ServerMessageBlock req = new SmbComOpenAndX("test.txt", 0, 0, null); ServerMessageBlock resp = new SmbComOpenAndX("test.txt", 0, 0, null); resp.received = true; session.transport(); // initialise transport // Mock the sessionSetup behavior to avoid actual network callsCreated: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndX.java
*/ @Override public SmbComNTCreateAndXResponse initResponse(final CIFSContext tc) { final SmbComNTCreateAndXResponse resp = new SmbComNTCreateAndXResponse(tc.getConfig()); setResponse(resp); return resp; } /** * Adds flags to the flags0 field. * * @param fl * the flags0 to set */Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 8.6K bytes - Click Count (0) -
cmd/metacache-set.go
// We have enough and we have more. // Do not return io.EOF if resCh != nil { resErr = nil select { case resCh <- results: case <-ctx.Done(): } resCh = nil returned = true } continue } results.o = append(results.o, entry) } if resCh != nil { resErr = io.EOF select { case <-ctx.Done(): // Nobody wants it.Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 30.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/NtlmUtilTest.java
// Act byte[] resp = NtlmUtil.getLMv2Response(domain, user, password, challenge, clientChallenge); // Assert assertEquals(24, resp.length, "LMv2 response length must be 24"); assertArrayEquals(clientChallenge, Arrays.copyOfRange(resp, 16, 24), "Client challenge must be copied to last 8 bytes"); assertFalse(Arrays.equals(new byte[24], resp), "Response must not be all zeros"); }Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12K bytes - Click Count (1) -
docs/sts/web-identity.go
return d, err } clnt := http.Client{ Transport: http.DefaultTransport, } resp, err := clnt.Do(req) if err != nil { return d, err } defer resp.Body.Close() if resp.StatusCode != http.StatusOK { return d, fmt.Errorf("unexpected error returned by %s : status(%s)", ustr, resp.Status) } dec := json.NewDecoder(resp.Body) if err = dec.Decode(&d); err != nil { return d, err } return d, nil }Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri May 19 09:13:33 GMT 2023 - 7.8K bytes - Click Count (0) -
cmd/update.go
StatusCode: http.StatusInternalServerError, } } if resp == nil { return content, AdminError{ Code: AdminUpdateUnexpectedFailure, Message: fmt.Sprintf("No response from server to download URL %s", u), StatusCode: http.StatusInternalServerError, } } defer xhttp.DrainBody(resp.Body) if resp.StatusCode != http.StatusOK { return content, AdminError{Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 18.9K bytes - Click Count (0)