tcputils

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERVICEQ_NO_ERR      = 600
	SERVICEQ_FLOODED_ERR = 601
	UPSTREAM_NO_ERR      = 700
	UPSTREAM_TCP_ERR     = 701
	UPSTREAM_HTTP_ERR    = 702

	RESPONSE_FLOODED      = "SERVICEQ_FLOODED"
	RESPONSE_TIMED_OUT    = "UPSTREAM_TIMED_OUT"
	RESPONSE_SERVICE_DOWN = "UPSTREAM_DOWN"
	RESPONSE_NO_RESPONSE  = "UPSTREAM_NO_RESPONSE"
)

Variables

This section is empty.

Functions

func EvalError

func EvalError(err error) error

EvalError evaluates the type of errors from upstream node

func IsTCPAlive

func IsTCPAlive(service string) bool

IsTCPAlive is a ping service to determine tcp connection state

func SetTCPDeadline

func SetTCPDeadline(conn *net.Conn, keepAliveTimeout int32)

SetTCPDeadline sets keep-alive timeout to tcp connection

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL