File: retryable_linux.go

package info (click to toggle)
golang-google-api 0.61.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 209,080 kB
  • sloc: sh: 183; makefile: 22; python: 4
file content (16 lines) | stat: -rw-r--r-- 453 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux
// +build linux

package gensupport

import "syscall"

func init() {
	// Initialize syscallRetryable to return true on transient socket-level
	// errors. These errors are specific to Linux.
	syscallRetryable = func(err error) bool { return err == syscall.ECONNRESET || err == syscall.ECONNREFUSED }
}