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:
Nicolas JUHEL
2024-02-05 15:03:58 +01:00
parent f7fd908a14
commit c1fc4e816e
17 changed files with 464 additions and 164 deletions

View File

@@ -32,8 +32,10 @@ package unix
import "fmt"
var (
ErrContextClosed = fmt.Errorf("context closed")
ErrServerClosed = fmt.Errorf("server closed")
ErrInvalidGroup = fmt.Errorf("invalid unix group for socket group permission")
ErrInvalidHandler = fmt.Errorf("invalid handler")
ErrContextClosed = fmt.Errorf("context closed")
ErrServerClosed = fmt.Errorf("server closed")
ErrInvalidGroup = fmt.Errorf("invalid unix group for socket group permission")
ErrInvalidHandler = fmt.Errorf("invalid handler")
ErrShutdownTimeout = fmt.Errorf("timeout on stopping socket")
ErrInvalidInstance = fmt.Errorf("invalid socket instance")
)