mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: relax some warnings
Don't emit warnings for EPIPE and ECONNRESET when received from recv. Some apps just disconnect violently. Fixes #2141
This commit is contained in:
		
							parent
							
								
									0df9d03729
								
							
						
					
					
						commit
						d2f8cd2114
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -226,7 +226,8 @@ static int do_read(struct client *client)
 | 
			
		|||
			if (errno == EINTR)
 | 
			
		||||
				continue;
 | 
			
		||||
			res = -errno;
 | 
			
		||||
			if (res != -EAGAIN && res != -EWOULDBLOCK)
 | 
			
		||||
			if (res != -EAGAIN && res != -EWOULDBLOCK &&
 | 
			
		||||
			    res != -EPIPE && res != -ECONNRESET)
 | 
			
		||||
				pw_log_warn("recv client:%p res %zd: %m", client, r);
 | 
			
		||||
			goto exit;
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			@ -327,6 +328,7 @@ done:
 | 
			
		|||
error:
 | 
			
		||||
	switch (res) {
 | 
			
		||||
	case -EPIPE:
 | 
			
		||||
	case -ECONNRESET
 | 
			
		||||
		pw_log_info("server %p: client %p [%s] disconnected",
 | 
			
		||||
			    client->server, client, client->name);
 | 
			
		||||
		SPA_FALLTHROUGH;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue