Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for 1004 (0.18 sec)

  1. src/test/java/jcifs/tests/FileAttributesTest.java

                    f.setLastModified(time);
    
                    if ( ( getContext().getConfig().getCapabilities() & SmbConstants.CAP_NT_SMBS ) == 0 ) {
                        // only have second precision
                        // there seems to be some random factor (adding one second)
                        int diff = Math.abs((int) ( ( time / 1000 ) - ( f.lastModified() / 1000 ) ));
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/http/NtlmHttpFilter.java

                    if ( list != null && list.length > 0 ) {
                        this.dcList = list;
                    }
                    else { /* keep using the old list */
                        this.dcListExpiration = now + 1000 * 60 * 15; /* 15 min */
                        log.warn("Failed to retrieve DC list from WINS");
                    }
                }
    
                int max = Math.min(this.dcList.length, this.netbiosLookupRespLimit);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbSession.java

                        if (list != null && list.length > 0) {
                            dc_list = list;
                        } else { /* keep using the old list */
                            dc_list_expiration = now + 1000 * 60 * 15; /* 15 min */
                            if (SmbTransport.log.level >= 2) {
                                SmbTransport.log.println( "Failed to retrieve DC list from WINS" );
                            }
                        }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 18.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/NbtAddress.java

            if( CACHE_POLICY == 0 ) {
                return;
            }
            long expiration = -1;
            if( CACHE_POLICY != FOREVER ) {
                expiration = System.currentTimeMillis() + CACHE_POLICY * 1000;
            }
            cacheAddress( hostName, addr, expiration );
        }
        static void cacheAddress( Name hostName, NbtAddress addr, long expiration ) {
            if( CACHE_POLICY == 0 ) {
                return;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 30.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/KerberosTest.java

            long start = System.currentTimeMillis() / 1000 * 1000;
            // this is not too great as it depends on timing/clockskew
            // first we need to obtain a ticket, therefor need valid credentials
            // then we need to wait until the ticket is expired
            int wait = 10 * 1000;
            long princExp = start + ( wait / 2 );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 11.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/ConcurrencyTest.java

                @Override
                public void run () {
    
                    try {
                        synchronized ( lock ) {
                            lock.wait(1000);
                        }
    
                        Thread.sleep(100);
                        t.interrupt();
                    }
                    catch ( InterruptedException e ) {
                        e.printStackTrace();
                    }
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 14 17:40:50 GMT 2021
    - 17.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                rn = resp.numReferrals;
            }
    
            DfsReferral dr = new DfsReferral();
    
            String[] arr = new String[4];
            long expiration = System.currentTimeMillis() + Dfs.TTL * 1000;
    
            int di = 0;
            for ( ;; ) {
                            /* NTLM HTTP Authentication must be re-negotiated
                             * with challenge from 'server' to access DFS vol. */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 31.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/netbios/NameServiceClientImpl.java

            if ( this.transportContext.getConfig().getNetbiosCachePolicy() != SmbConstants.FOREVER ) {
                expiration = System.currentTimeMillis() + this.transportContext.getConfig().getNetbiosCachePolicy() * 1000;
            }
            cacheAddress(hostName, addr, expiration);
        }
    
    
        void cacheAddress ( Name hostName, NbtAddress addr, long expiration ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 14 14:26:22 GMT 2022
    - 38.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                            response.received = false;
    
                            responseTable.put( nid, response );
                            ensureOpen( timeout + 1000 );
                            socket.send( out );
    
                            if( log.level > 3 ) {
                                log.println( request );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 17.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeConnection.java

                        // backoff, but don't delay the first attempt as there are various reasons that can be fixed
                        // immediately
                        Thread.sleep(500 + RAND.nextInt(1000));
                    }
                }
                catch ( InterruptedException e ) {
                    log.debug("interrupted sleep in send", e);
                }
    
                if ( request != null ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:50:16 GMT 2020
    - 31K bytes
    - Viewed (0)
Back to top