mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	remotecommand: close resize channel for notification
Remotecommand package should notify executor by closing resizeChan. Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
		@@ -411,6 +411,7 @@ func (*v1ProtocolHandler) supportsTerminalResizing() bool { return false }
 | 
			
		||||
 | 
			
		||||
func handleResizeEvents(stream io.Reader, channel chan<- remotecommand.TerminalSize) {
 | 
			
		||||
	defer runtime.HandleCrash()
 | 
			
		||||
	defer close(channel)
 | 
			
		||||
 | 
			
		||||
	decoder := json.NewDecoder(stream)
 | 
			
		||||
	for {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user