func (h *RpcServerHandler) OnError(session getty.Session, err error) {
	logger.Infof("session{%s} got error{%v}, will be closed.", session.Stat(), err)
	h.rwlock.Lock()
	delete(h.sessionMap, session)
	h.rwlock.Unlock()
}
// OnError the getty server session has errored, so remove the session from the getty server session list
OnError the getty server session has errored, so remove the session from the getty server session list
// OnError the getty server session has errored so remove the session from the getty server session list
func (h *RpcServerHandler) OnError(session getty.Session, err error) {
	logger.Infof("session{%s} got error{%v}, will be closed.", session.Stat(), err)
	h.rwlock.Lock()
	delete(h.sessionMap, session)
	h.rwlock.Unlock()
}
func ( h * RpcServerHandler ) OnError ( session getty . Session , err error ) { logger . Infof ( " " , session . Stat ( ) , err ) h . rwlock . Lock ( ) delete ( h . sessionMap , session ) h . rwlock . Unlock ( ) }
OnError the getty server session has errored, so remove the session from the getty server session list
OnError the getty server session has errored so remove the session from the getty server session list