Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ngap/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ func handleConnection(conn *sctp.SCTPConn, bufsize uint32, handler NGAPHandler)
defer func() {
connections.Delete(conn)

// Notify the NGAP dispatcher that this RAN connection has closed so that
// its AmfRan entry is removed from AmfRanPool
handler.HandleMessage(conn, []byte{})
Comment thread
gab-arrobo marked this conversation as resolved.
Outdated
Comment thread
gab-arrobo marked this conversation as resolved.
Outdated

// if AMF call Stop(), then conn.Close() will return EBADF because conn has been closed inside Stop()
if err := conn.Close(); err != nil && err != syscall.EBADF {
logger.NgapLog.Errorf("close connection error: %+v", err)
Expand Down
Loading