1、修改bug,如果连接报错,就会拒绝服务的问题
This commit is contained in:
		
							parent
							
								
									a1c0ad2f70
								
							
						
					
					
						commit
						41414aafa9
					
				
							
								
								
									
										2
									
								
								ap.go
								
								
								
								
							
							
						
						
									
										2
									
								
								ap.go
								
								
								
								
							| 
						 | 
				
			
			@ -61,7 +61,7 @@ func (s *accessPoint) SetDataTag(tag uint8) {
 | 
			
		|||
	s.tag = tag
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Close will close the connection to YoMo-MessageQueue.
 | 
			
		||||
// Close will close the connection to MessageQueue.
 | 
			
		||||
func (s *accessPoint) Close() error {
 | 
			
		||||
	if err := s.client.Close(); err != nil {
 | 
			
		||||
		s.client.Logger().Errorf("%sClose(): %v", apLogPrefix, err)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								go.mod
								
								
								
								
							
							
						
						
									
										2
									
								
								go.mod
								
								
								
								
							| 
						 | 
				
			
			@ -3,7 +3,7 @@ module git.hpds.cc/pavement/hpds_node
 | 
			
		|||
go 1.19
 | 
			
		||||
 | 
			
		||||
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/lucas-clemente/quic-go v0.29.1
 | 
			
		||||
	github.com/stretchr/testify v1.8.0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue