mirror of
https://github.com/nabbar/golib.git
synced 2025-10-06 00:06:50 +08:00
Package Socket/Server:
- fix UDP as kernel SOCKGRAM - add unixgram as kernel SOCKGRAM for local socket file - optimize parallel statment - optimize code / minor bugs fix - add IsRunning function - add timeout shutdown based on periodicly check of IsRunning - fix close channel before send empty struct to stop process - optimize clean shutdown - optimize connection process to use less resources and lock pipeline less time
This commit is contained in:
@@ -30,8 +30,9 @@ import "fmt"
|
||||
|
||||
var (
|
||||
ErrInvalidAddress = fmt.Errorf("invalid listen address")
|
||||
ErrInvalidHostName = fmt.Errorf("invalid server host name")
|
||||
ErrInvalidHostPort = fmt.Errorf("invalid server host port")
|
||||
ErrContextClosed = fmt.Errorf("context closed")
|
||||
ErrServerClosed = fmt.Errorf("server closed")
|
||||
ErrInvalidHandler = fmt.Errorf("invalid handler")
|
||||
ErrShutdownTimeout = fmt.Errorf("timeout on stopping socket")
|
||||
ErrInvalidInstance = fmt.Errorf("invalid socket instance")
|
||||
)
|
||||
|
Reference in New Issue
Block a user