Package Socket:

- fix tcp,udp,unix socket
- add socket unixgram for session less unix socket
- optmize process & code
- add some standalone test for server / client (add example server config for
  rsyslog)

Package Network/Protocol:
- add unixgram protocol

Package Errors:
- fix bug in loop to prevent circular include
This commit is contained in:
nabbar
2024-01-28 08:20:05 +01:00
parent db0a79e2e7
commit c66a00917a
51 changed files with 2114 additions and 648 deletions

View File

@@ -100,8 +100,10 @@ func (e *ers) Add(parent ...error) {
if er, ok = v.(*ers); ok {
// prevent circular addition
if e.is(er) {
continue
if e.IsError(er) {
for _, erp := range er.p {
e.Add(erp)
}
} else {
e.p = append(e.p, er)
}