mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-11-04 09:47:30 +03:00 
			
		
		
		
	Fix select/timeout indication in async replication example
This commit is contained in:
		
							parent
							
								
									822d671e8b
								
							
						
					
					
						commit
						e3097ec956
					
				| 
						 | 
				
			
			@ -501,9 +501,9 @@ The individual messages in the replication stream are presented by
 | 
			
		|||
                if timeout > 0:
 | 
			
		||||
                    sel = select.select([cur], [], [], timeout)
 | 
			
		||||
                else:
 | 
			
		||||
                    sel = []
 | 
			
		||||
                    sel = ([], [], [])
 | 
			
		||||
 | 
			
		||||
                if not sel:
 | 
			
		||||
                if not sel[0]:
 | 
			
		||||
                    cur.send_replication_feedback()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user