Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 192 for reconnect (0.1 sec)

  1. internal/rest/client.go

    		}
    		sleep -= time.Duration(r.Float64() * float64(sleep-unit))
    		return sleep
    	}
    }
    
    func (c *Client) runHealthCheck() bool {
    	// Start goroutine that will attempt to reconnect.
    	// If server is already trying to reconnect this will have no effect.
    	if c.HealthCheckFn != nil && atomic.CompareAndSwapInt32(&c.connected, online, offline) {
    		go func() {
    			backOff := exponentialBackoffWait(
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            super(connection.getURL());
            this.connection = connection;
            requestProperties = new HashMap();
        }
    
        public void connect() throws IOException {
            if (connected) return;
            connection.connect();
            connected = true;
        }
    
        private void handshake() throws IOException {
            if (handshakeComplete) return;
            doHandshake();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 20.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/http/NtlmHttpURLConnection.java

            this.setInstanceFollowRedirects(this.connection.getInstanceFollowRedirects());
        }
    
    
        @Override
        public void connect () throws IOException {
            if ( this.connected )
                return;
            this.connection.connect();
            this.connected = true;
        }
    
    
        private void handshake () {
            if ( this.handshakeComplete )
                return;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 25.5K bytes
    - Viewed (0)
  4. cmd/storage-rest-client.go

    	return client.endpoint.String()
    }
    
    // IsOnline - returns whether client failed to connect or not.
    func (client *storageRESTClient) IsOnline() bool {
    	return client.restClient.IsOnline() || client.IsOnlineWS()
    }
    
    // IsOnlineWS - returns whether websocket client failed to connect or not.
    func (client *storageRESTClient) IsOnlineWS() bool {
    	return client.gridConn.State() == grid.StateConnected
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Oct 13 13:07:21 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  5. cmd/globals.go

    	// Only needed for tracking
    	globalServiceFreezeCnt int32
    	globalServiceFreezeMu  sync.Mutex // Updates.
    
    	// Map of local drives to this node, this is set during server startup,
    	// disk reconnect and mutated by HealFormat. Hold globalLocalDrivesMu to access.
    	globalLocalDrivesMap map[string]StorageAPI
    	globalLocalDrivesMu  sync.RWMutex
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. internal/config/notify/help.go

    			Description: "keep-alive interval for MQTT connections in s,m,h,d",
    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         target.MqttReconnectInterval,
    			Description: "reconnect interval for MQTT connections in s,m,h,d",
    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         target.MqttQueueDir,
    			Description: queueDirComment,
    			Optional:    true,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  7. internal/grid/connection.go

    	// Signal that we are reconnected, update state and handle messages.
    	// Prevent other connections from connecting while we process.
    	c.reconnectMu.Lock()
    	if c.remoteID != nil {
    		c.reconnected()
    	}
    	rid := uuid.UUID(req.ID)
    	c.remoteID = &rid
    
    	// Handle incoming messages until disconnect.
    	c.handleMessages(ctx, conn)
    	return nil
    }
    
    // reconnected signals the connection has been reconnected.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeImpl.java

                         */
                        String svc = this.service0;
    
                        /*
                         * Tree Connect And X Request / Response
                         */
    
                        if ( log.isDebugEnabled() ) {
                            log.debug("treeConnect: unc=" + unc + ",service=" + svc);
                        }
    
                        if ( transport.isSMB2() ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 29.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTreeConnection.java

            try {
                return connect(loc);
            }
            catch ( UnknownHostException uhe ) {
                throw new SmbException("Failed to connect to server", uhe);
            }
            catch ( SmbException se ) {
                throw se;
            }
            catch ( IOException ioe ) {
                throw new SmbException("Failed to connect to server", ioe);
            }
        }
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 31K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/transport/Transport.java

                    t.wait(timeout); /* wait for doConnect */
    
                    st = this.state;
                    switch ( st ) {
                    case 1: /* doConnect never returned */
                        this.state = 6;
                        throw new ConnectionTimeoutException("Connection timeout");
                    case 2:
                        if ( this.te != null ) { /* doConnect throw Exception */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 01 18:12:21 UTC 2020
    - 24.1K bytes
    - Viewed (0)
Back to top