Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 255 for Idle (0.04 sec)

  1. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/testing/DaemonEventSequenceBuilder.groovy

            state(busy, numDaemons - busy)
        }
    
        void idle() {
            idle(numDaemons)
        }
    
        void idle(int idle) {
            state(numDaemons - idle, idle)
        }
    
        void stopped() {
            numDaemons = 0
            state(0, 0)
        }
    
        void state(int busy, int idle) {
            state(new DaemonsState(busy, idle))
        }
    
        void state(DaemonsState checkpointState) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. src/net/tcpconn_keepalive_posix_test.go

    		return
    	}
    	cfg = KeepAliveConfig{
    		Enable:   tcpKeepAlive != 0,
    		Idle:     time.Duration(tcpKeepAliveIdle) * time.Second,
    		Interval: time.Duration(tcpKeepAliveInterval) * time.Second,
    		Count:    tcpKeepAliveCount,
    	}
    	return
    }
    
    func verifyKeepAliveSettings(t *testing.T, fd fdType, oldCfg, cfg KeepAliveConfig) {
    	if cfg.Idle == 0 {
    		cfg.Idle = defaultTCPKeepAliveIdle
    	}
    	if cfg.Interval == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 16:02:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/DaemonStateCoordinatorTest.groovy

            0 * _._
        }
    
        def "idle millis is 0 if daemon is busy"() {
            given:
            Runnable command = Mock()
    
            when:
            coordinator.runCommand(command, "some command")
    
            then:
            1 * command.run() >> {
                coordinator.getIdleMillis() == 0L
            }
        }
    
        def "idle millis is > 0 when daemon is idle"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 05 22:24:02 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. src/net/tcpconn_keepalive_illumos_test.go

    	if cfg.Interval == 0 {
    		cfg.Interval = defaultTCPKeepAliveInterval
    	}
    	if cfg.Count == 0 {
    		cfg.Count = defaultTCPKeepAliveCount
    	}
    
    	if cfg.Idle == -1 {
    		cfg.Idle = oldCfg.Idle
    	}
    	// Check out the comment on KeepAliveConfig and the illumos code:
    	// https://github.com/illumos/illumos-gate/blob/0886dcadf4b2cd677c3b944167f0d16ccb243616/usr/src/uts/common/inet/tcp/tcp_opt_data.c#L786-L861
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:21 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/CompatibleDaemonExpirationStrategyTest.groovy

            DaemonInfo d1 = registerDaemon(Idle)
            DaemonInfo d2 = registerDaemon(Idle)
    
            when:
            compatible = [ d1, d2 ]
    
            then:
            wouldExpire(d1)
            wouldExpire(d2)
        }
    
        def "does not expire when there are no compatible daemons"() {
            given:
            DaemonInfo d1 = registerDaemon(Idle)
            DaemonInfo d2 = registerDaemon(Idle)
            DaemonInfo d3 = registerDaemon(Idle)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. src/net/tcpconn_keepalive_solaris_test.go

    	cfg = KeepAliveConfig{
    		Enable:   tcpKeepAlive != 0,
    		Idle:     tcpKeepAliveIdleTime,
    		Interval: tcpKeepAliveIntervalTime,
    		Count:    tcpKeepAliveCount,
    	}
    	return
    }
    
    func verifyKeepAliveSettings(t *testing.T, fd fdType, oldCfg, cfg KeepAliveConfig) {
    	const defaultTcpKeepAliveAbortThreshold = 8 * time.Minute // default value on Solaris
    
    	if cfg.Idle == 0 {
    		cfg.Idle = defaultTCPKeepAliveIdle
    	}
    	if cfg.Interval == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  7. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/DaemonStateCoordinator.java

                while (!timer.hasExpired()) {
                    try {
                        switch (state) {
                            case Idle:
                                LOGGER.debug("Cancel: daemon is idle now.");
                                return null;
                            case Busy:
                            case Canceled:
                            case StopRequested:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:38 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/server/NotMostRecentlyUsedDaemonExpirationStrategyTest.groovy

    import static org.gradle.launcher.daemon.server.api.DaemonStateControl.State.Idle
    
    class NotMostRecentlyUsedDaemonExpirationStrategyTest extends DaemonExpirationStrategyTest {
    
        def "does not expire when there is only one daemon"() {
            given:
            DaemonInfo d1 = registerDaemon(Idle)
    
            expect:
            !wouldExpire(d1)
        }
    
        def "expires given more than 1 daemon"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. src/net/tcpsockopt_solaris.go

    func setKeepAliveIdleAndIntervalAndCount(fd *netFD, idle, interval time.Duration, count int) error {
    	if idle == 0 {
    		idle = defaultTCPKeepAliveIdle
    	}
    
    	// The kernel expects milliseconds so round to next highest
    	// millisecond.
    	if idle > 0 {
    		msecs := int(roundDurationUp(idle, time.Millisecond))
    		err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_KEEPALIVE_THRESHOLD, msecs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/daemon/registry/PersistentDaemonRegistryTest.groovy

            when:
            registry.markState(address, Busy)
    
            then:
            registry.all.empty
        }
    
        def "mark idle ignores entry that has been removed"() {
            given:
            def address = address()
    
            when:
            registry.markState(address, Idle)
    
            then:
            registry.all.empty
        }
    
        def "safely removes stop events when empty"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 00:09:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top