mirror of
https://github.com/nabbar/golib.git
synced 2025-10-18 21:54:36 +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:
@@ -57,6 +57,7 @@ func New(h libsck.Handler, sizeBuffRead libsiz.Size) ServerTcp {
|
||||
h: f,
|
||||
c: c,
|
||||
s: s,
|
||||
r: new(atomic.Bool),
|
||||
fe: new(atomic.Value),
|
||||
fi: new(atomic.Value),
|
||||
fs: new(atomic.Value),
|
||||
|
Reference in New Issue
Block a user