mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-24 19:26:39 +00:00
- add comments
- avoid double closing messages - add cleanup routine for relay manager
This commit is contained in:
@@ -79,6 +79,7 @@ func (c *Conn) Close() error {
|
||||
return c.Conn.Close(websocket.StatusNormalClosure, "")
|
||||
}
|
||||
|
||||
// todo: fix io.EOF handling
|
||||
func ioErrHandling(err error) error {
|
||||
var wErr *websocket.CloseError
|
||||
if !errors.As(err, &wErr) {
|
||||
|
||||
@@ -18,7 +18,6 @@ import (
|
||||
// Server
|
||||
// todo:
|
||||
// authentication: provide JWT token via RPC call. The MGM server can forward the token to the agents.
|
||||
// connection timeout handling
|
||||
type Server struct {
|
||||
store *Store
|
||||
|
||||
|
||||
Reference in New Issue
Block a user