mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Clearing out old patch queue. Patch #558547, make SocketServer more
robust. This makes socketserver's close() method callable repeatedly without error - similar to other file-like objects.
This commit is contained in:
		
							parent
							
								
									bf1b1fdb9e
								
							
						
					
					
						commit
						4cedc1e84e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -561,7 +561,8 @@ def setup(self):
 | 
			
		|||
        self.wfile = self.connection.makefile('wb', self.wbufsize)
 | 
			
		||||
 | 
			
		||||
    def finish(self):
 | 
			
		||||
        self.wfile.flush()
 | 
			
		||||
        if not self.wfile.closed:
 | 
			
		||||
            self.wfile.flush()
 | 
			
		||||
        self.wfile.close()
 | 
			
		||||
        self.rfile.close()
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue