Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 575 for recover (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RetryTlsHandshake.kt

    fun retryTlsHandshake(e: IOException): Boolean {
      return when {
        // If there was a protocol problem, don't recover.
        e is ProtocolException -> false
    
        // If there was an interruption or timeout (SocketTimeoutException), don't recover.
        // For the socket connect timeout case we do not try the same host with a different
        // ConnectionSpec: we assume it is unreachable.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. doc/next/6-stdlib/99-minor/runtime/debug/42888.md

    file to which the runtime should write its fatal crash report.
    It may be used to construct an automated reporting mechanism for all
    unexpected crashes, not just those in goroutines that explicitly use
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 283 bytes
    - Viewed (0)
  3. src/builtin/builtin.go

    // call of panic. If recover is called outside the deferred function it will
    // not stop a panicking sequence. In this case, or when the goroutine is not
    // panicking, recover returns nil.
    //
    // Prior to Go 1.21, recover would also return nil if panic is called with
    // a nil argument. See [panic] for details.
    func recover() any
    
    // The print built-in function formats its arguments in an
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

          }
        }
      }
    
      /**
       * Report and attempt to recover from a failure to communicate with a server. Returns true if
       * `e` is recoverable, or false if the failure is permanent. Requests with a body can only
       * be recovered if the body is buffered or if the failure occurred before the request has been
       * sent.
       */
      private fun recover(
        e: IOException,
        call: RealCall,
        userRequest: Request,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  5. docs/changelogs/changelog_3x.md

        `HttpUrl.Builder.addEncodedQueryParameter()`.
     *  New: CBC-mode ECDSA cipher suites have been removed from OkHttp's default
        configuration: `TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA` and
        `TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA`. This tracks a [Chromium
        change][remove_cbc_ecdsa] to remove these cipher suites because they are
        fragile and rarely-used.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  6. internal/lsync/lrwmutex_test.go

    // Borrowed from rwmutex_test.go
    func TestUnlockPanic(t *testing.T) {
    	defer func() {
    		if recover() == nil {
    			t.Fatalf("unlock of unlocked RWMutex did not panic")
    		}
    	}()
    	mu := NewLRWMutex()
    	mu.Unlock()
    }
    
    // Borrowed from rwmutex_test.go
    func TestUnlockPanic2(t *testing.T) {
    	defer func() {
    		if recover() == nil {
    			t.Fatalf("unlock of unlocked RWMutex did not panic")
    		}
    	}()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Mar 05 04:57:35 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  7. src/bytes/buffer.go

    // It returns the index where bytes should be written.
    // If the buffer can't grow it will panic with ErrTooLarge.
    func (b *Buffer) grow(n int) int {
    	m := b.Len()
    	// If buffer is empty, reset to recover space.
    	if m == 0 && b.off != 0 {
    		b.Reset()
    	}
    	// Try to grow by means of a reslice.
    	if i, ok := b.tryGrowByReslice(n); ok {
    		return i
    	}
    	if b.buf == nil && n <= smallBufferSize {
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  8. internal/dsync/drwmutex_test.go

    func TestUnlockPanic(t *testing.T) {
    	defer func() {
    		if recover() == nil {
    			t.Fatalf("unlock of unlocked RWMutex did not panic")
    		}
    	}()
    	mu := NewDRWMutex(ds, "test")
    	mu.Unlock(context.Background())
    }
    
    // Borrowed from rwmutex_test.go
    func TestUnlockPanic2(t *testing.T) {
    	mu := NewDRWMutex(ds, "test-unlock-panic-2")
    	defer func() {
    		if recover() == nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
  9. src/archive/tar/writer_test.go

    	hdr, err = reader.Next()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if hdr.Name != chineseFilename {
    		t.Fatal("Couldn't recover unicode name")
    	}
    	if hdr.Gname != chineseGroupname {
    		t.Fatal("Couldn't recover unicode group")
    	}
    	if hdr.Uname != chineseUsername {
    		t.Fatal("Couldn't recover unicode user")
    	}
    }
    
    func TestPaxXattrs(t *testing.T) {
    	xattrs := map[string]string{
    		"user.key": "value",
    	}
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  10. .github/workflows/multipart/migrate.sh

    docker-compose -f docker-compose-site2.yaml up -d
    
    ./mc ready site1/
    ./mc ready site2/
    
    for i in $(seq 1 10); do
    	# mc admin heal -r --remove when used against a LB endpoint
    	# behaves flaky, let this run 10 times before giving up
    	./mc admin heal -r --remove --json site1/ 2>&1 >/dev/null
    	./mc admin heal -r --remove --json site2/ 2>&1 >/dev/null
    done
    
    Shell Script
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Feb 17 01:15:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
Back to top