Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for urlopen (0.17 sec)

  1. docs/sts/client_grants/__init__.py

                headers['authorization'] = urllib3.make_headers(
                    basic_auth='%s:%s' % (self.cid, self.csec))['authorization']
    
                response = self._http.urlopen('POST', self.idp_ep,
                                              body="grant_type=client_credentials",
                                              headers=headers,
                                              preload_content=True,
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/util/SmbCircuitBreakerTest.java

                });
                fail("Should have thrown exception");
            } catch (CIFSException e) {
                // Expected - failure in HALF_OPEN should reopen circuit
            }
    
            assertEquals(State.OPEN, circuitBreaker.getState(), "Circuit should reopen after failure in HALF_OPEN");
        }
    
        @Test
        public void testStateTransitionMetrics() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            verify(tree, atLeastOnce()).release();
    
            // Re-prepare state for second branch: not open but handle set
            when(fileHandle.isValid()).thenReturn(false);
            // Need to reopen logic to set handle again
            // Reset open flag by reconstructing target
            target = new SmbPipeHandleImpl(pipe);
    
            target.ensureOpen(); // handle present but invalid per isValid=false
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

            when(mockFileHandle.getFileId()).thenReturn(new byte[16]);
            when(mockFileHandle.acquire()).thenReturn(mockFileHandle);
    
            // Mock for ensureOpen to reopen file
            when(mockFile.openUnshared(anyInt(), anyInt(), anyInt(), anyInt(), anyInt())).thenReturn(mockFileHandle);
    
            when(mockTreeHandle.send(any(Smb2WriteRequest.class), any())).thenReturn(mockWriteResponse);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequest.java

        /**
         * Flag indicating that the file index field contains a valid index.
         */
        public static final byte SMB2_INDEX_SPECIFIED = 0x4;
    
        /**
         * Flag to reopen the directory enumeration.
         */
        public static final byte SMB2_REOPEN = 0x10;
    
        private byte fileInformationClass = FILE_BOTH_DIRECTORY_INFO;
        private byte queryFlags;
        private int fileIndex;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/util/SimpleCircuitBreakerTest.java

            // Open the circuit
            circuitBreaker.tripBreaker();
    
            // Wait for timeout
            Thread.sleep(150);
    
            // Single failure in HALF_OPEN should reopen
            try {
                circuitBreaker.call(() -> {
                    throw new RuntimeException("Test failure");
                });
            } catch (Exception e) {
                // Expected
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. docs/smb3-features/02-persistent-handles-design.md

                    // Create reconnect context
                    DurableHandleReconnect reconnectCtx = 
                        new DurableHandleReconnect(info.fileId);
                    
                    // Attempt to reopen with reconnect context
                    Smb2CreateRequest createReq = new Smb2CreateRequest();
                    createReq.setPath(info.path);
                    createReq.addCreateContext(reconnectCtx);
                    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbCopyUtil.java

                                ioff += maxChunkSize;
                            }
    
                            if (dfd == null || !dfd.isValid()) {
                                // don't reopen the file for every round if it's not necessary, keep the lock
                                dfd = openCopyTargetFile(dest, src.getAttributes(), !write);
                            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

            }
            file.open(openFlags, access | SmbConstants.FILE_WRITE_DATA, SmbFile.ATTR_NORMAL, 0);
            this.openFlags &= ~(SmbFile.O_CREAT | SmbFile.O_TRUNC); /* in case close and reopen */
            writeSize = file.tree.session.transport.snd_buf_size - 70;
    
            useNTSmbs = file.tree.session.transport.hasCapability(SmbConstants.CAP_NT_SMBS);
            if (useNTSmbs) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileOutputStream.java

                this.writeSizeFile = sendBufferSize;
                return;
            }
    
            this.openFlags &= ~(SmbConstants.O_CREAT | SmbConstants.O_TRUNC); /* in case we close and reopen */
            this.writeSize = sendBufferSize - 70;
    
            this.useNTSmbs = th.hasCapability(SmbConstants.CAP_NT_SMBS);
            if (!this.useNTSmbs) {
                log.debug("No support for NT SMBs");
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top