...

Source file src/google.golang.org/api/internal/gensupport/retryable_linux.go

Documentation: google.golang.org/api/internal/gensupport

     1  // Copyright 2020 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build linux
     6  // +build linux
     7  
     8  package gensupport
     9  
    10  import "syscall"
    11  
    12  func init() {
    13  	// Initialize syscallRetryable to return true on transient socket-level
    14  	// errors. These errors are specific to Linux.
    15  	syscallRetryable = func(err error) bool { return err == syscall.ECONNRESET || err == syscall.ECONNREFUSED }
    16  }
    17  

View as plain text