|  | @@ -53,6 +53,10 @@ func (this *SendingWindow) Clear(una uint32) {
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  func (this *SendingWindow) Remove(idx uint32) {
 |  |  func (this *SendingWindow) Remove(idx uint32) {
 | 
											
												
													
														|  | 
 |  | +	if this.len == 0 {
 | 
											
												
													
														|  | 
 |  | +		return
 | 
											
												
													
														|  | 
 |  | +	}
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |  	pos := (this.start + idx) % this.cap
 |  |  	pos := (this.start + idx) % this.cap
 | 
											
												
													
														|  |  	seg := this.data[pos]
 |  |  	seg := this.data[pos]
 | 
											
												
													
														|  |  	if seg == nil {
 |  |  	if seg == nil {
 | 
											
										
											
												
													
														|  | @@ -80,6 +84,9 @@ func (this *SendingWindow) Remove(idx uint32) {
 | 
											
												
													
														|  |  }
 |  |  }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  func (this *SendingWindow) HandleFastAck(number uint32) {
 |  |  func (this *SendingWindow) HandleFastAck(number uint32) {
 | 
											
												
													
														|  | 
 |  | +	if this.len == 0 {
 | 
											
												
													
														|  | 
 |  | +		return
 | 
											
												
													
														|  | 
 |  | +	}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  	for i := this.start; ; i = this.next[i] {
 |  |  	for i := this.start; ; i = this.next[i] {
 | 
											
												
													
														|  |  		seg := this.data[i]
 |  |  		seg := this.data[i]
 |