Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for disconnecting (0.08 sec)

  1. internal/grid/muxclient.go

    	// Only check ping when not closed.
    	if got := time.Since(time.Unix(0, atomic.LoadInt64(&m.LastPong))); got > m.clientPingInterval*2 {
    		m.respMu.Unlock()
    		if debugPrint {
    			fmt.Printf("Mux %d: last pong %v ago, disconnecting\n", m.MuxID, got)
    		}
    		m.addErrorNonBlockingClose(respHandler, ErrDisconnected)
    		return false
    	}
    
    	// Send new ping
    	err := m.sendLocked(message{Op: OpPing, MuxID: m.MuxID})
    	m.respMu.Unlock()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultWagonManager.java

            }
        }
    
        private void disconnectWagon(Wagon wagon) {
            try {
                wagon.disconnect();
            } catch (ConnectionException e) {
                logger.error("Problem disconnecting from wagon - ignoring: " + e.getMessage());
            }
        }
    
        private void releaseWagon(String protocol, Wagon wagon) {
            try {
                container.release(wagon);
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    				if err := enc.Encode(prevResult); err != nil {
    					return
    				}
    			} else {
    				// first result is not yet obtained, keep writing
    				// empty entry to prevent client from disconnecting.
    				if err := enc.Encode(madmin.SpeedTestResult{}); err != nil {
    					return
    				}
    			}
    			w.(http.Flusher).Flush()
    		case result, ok := <-ch:
    			if !ok {
    				return
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  4. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          sink.writeUtf8(": ")
          sink.writeUtf8(value)
          sink.writeUtf8("\r\n")
        }
        sink.writeUtf8("\r\n")
        sink.flush()
      }
    
      /** Returns a sink that applies throttling and disconnecting. */
      private fun Sink.withThrottlingAndSocketPolicy(
        policy: MockResponse,
        disconnectHalfway: Boolean,
        expectedByteCount: Long,
        socket: Socket,
      ): Sink {
        var result: Sink = this
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_2x.md

     *  Fix: Update Jetty ALPN to `7.1.2.v20141202` (Java 7) and `8.1.2.v20141202` (Java 8).
        This fixes a bug in resumed TLS sessions where the wrong protocol could be
        selected.
     *  Fix: Don't crash in SPDY and HTTP/2 when disconnecting before connecting.
     *  Fix: Avoid a reverse DNS-lookup for a numeric proxy address
     *  Fix: Resurrect http/2 frame logging.
     *  Fix: Limit to 20 authorization attempts.
    
    ## Version 2.1.0
    
    _2014-11-11_
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 26.6K bytes
    - Viewed (0)
  6. internal/grid/connection.go

    			if lastPong > 0 {
    				lastPongTime := time.Unix(0, lastPong)
    				if d := time.Since(lastPongTime); d > connPingInterval*2 {
    					gridLogIf(ctx, fmt.Errorf("host %s last pong too old (%v); disconnecting", c.Remote, d.Round(time.Millisecond)))
    					return
    				}
    			}
    			ping := pingMsg{
    				T: time.Now(),
    			}
    			var err error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  7. cmd/perf-tests.go

    		}
    		time.Sleep(time.Second)
    	}
    	rx := float64(globalNetPerfRX.RXSample)
    	delta := globalNetPerfRX.firstToDisconnect.Sub(globalNetPerfRX.lastToConnect)
    	if delta < 0 {
    		rx = 0
    		errStr = "network disconnection issues detected"
    	}
    
    	globalNetPerfRX.Reset()
    	return madmin.NetperfNodeResult{Endpoint: "", TX: r.n / uint64(duration.Seconds()), RX: uint64(rx / delta.Seconds()), Error: errStr}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/websockets.md

    Notice that the query `token` will be handled by a dependency.
    
    ///
    
    With that you can connect the WebSocket and then send and receive messages:
    
    <img src="/img/tutorial/websockets/image05.png">
    
    ## Handling disconnections and multiple clients
    
    When a WebSocket connection is closed, the `await websocket.receive_text()` will raise a `WebSocketDisconnect` exception, which you can then catch and handle like in this example.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. cmd/admin-handlers-site-replication.go

    	for {
    		n, err := io.CopyN(xioutil.Discard, r.Body, 128*humanize.KiByte)
    		atomic.AddUint64(&globalSiteNetPerfRX.RX, uint64(n))
    		if err != nil && err != io.EOF && err != io.ErrUnexpectedEOF {
    			// If there is a disconnection before globalNetPerfMinDuration (we give a margin of error of 1 sec)
    			// would mean the network is not stable. Logging here will help in debugging network issues.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  10. cmd/peer-rest-server.go

    	for {
    		n, err := io.CopyN(xioutil.Discard, r.Body, 128*humanize.KiByte)
    		atomic.AddUint64(&globalNetPerfRX.RX, uint64(n))
    		if err != nil && err != io.EOF {
    			// If there is a disconnection before globalNetPerfMinDuration (we give a margin of error of 1 sec)
    			// would mean the network is not stable. Logging here will help in debugging network issues.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 53.2K bytes
    - Viewed (0)
Back to top