1、修改bug,如果连接报错,就会拒绝服务的问题

This commit is contained in:
wangjian 2023-04-02 23:26:19 +08:00
parent a1c0ad2f70
commit 41414aafa9
2 changed files with 2 additions and 2 deletions

2
ap.go
View File

@ -61,7 +61,7 @@ func (s *accessPoint) SetDataTag(tag uint8) {
s.tag = tag s.tag = tag
} }
// Close will close the connection to YoMo-MessageQueue. // Close will close the connection to MessageQueue.
func (s *accessPoint) Close() error { func (s *accessPoint) Close() error {
if err := s.client.Close(); err != nil { if err := s.client.Close(); err != nil {
s.client.Logger().Errorf("%sClose(): %v", apLogPrefix, err) s.client.Logger().Errorf("%sClose(): %v", apLogPrefix, err)

2
go.mod
View File

@ -3,7 +3,7 @@ module git.hpds.cc/pavement/hpds_node
go 1.19 go 1.19
require ( require (
git.hpds.cc/Component/network v0.0.0-20230326151855-3c157f531d86 git.hpds.cc/Component/network v0.0.0-20230402152327-d10a80765e7c
github.com/disintegration/imaging v1.6.2 github.com/disintegration/imaging v1.6.2
github.com/lucas-clemente/quic-go v0.29.1 github.com/lucas-clemente/quic-go v0.29.1
github.com/stretchr/testify v1.8.0 github.com/stretchr/testify v1.8.0