mirror of
				https://github.com/PurpleI2P/i2pd.git
				synced 2025-11-04 08:30:46 +00:00 
			
		
		
		
	always set expiration time for NSR tagset
This commit is contained in:
		
							parent
							
								
									43b587636b
								
							
						
					
					
						commit
						baec22610e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -512,6 +512,7 @@ namespace garlic
 | 
			
		|||
			{
 | 
			
		||||
				auto tagsetNsr = std::make_shared<ReceiveRatchetTagSet>(shared_from_this (), true);
 | 
			
		||||
				InitNewSessionTagset (tagsetNsr);
 | 
			
		||||
				tagsetNsr->Expire (); // let non-replied session expire
 | 
			
		||||
				GenerateMoreReceiveTags (tagsetNsr, ECIESX25519_NSR_NUM_GENERATED_TAGS);
 | 
			
		||||
			}	
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			@ -814,7 +815,6 @@ namespace garlic
 | 
			
		|||
			case eSessionStateNew:
 | 
			
		||||
				return HandleNewIncomingSession (buf, len);
 | 
			
		||||
			case eSessionStateNewSessionSent:
 | 
			
		||||
				receiveTagset->Expire (); // NSR tagset
 | 
			
		||||
				return HandleNewOutgoingSessionReply (buf, len);
 | 
			
		||||
			default:
 | 
			
		||||
				return false;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue