mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	ipc-server: improve error message
This commit is contained in:
		
							parent
							
								
									7fea36750e
								
							
						
					
					
						commit
						476773dd32
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -923,7 +923,8 @@ bool ipc_send_reply(struct ipc_client *client, enum ipc_command_type payload_typ
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	if (client->write_buffer_size > 4e6) { // 4 MB
 | 
			
		||||
		sway_log(SWAY_ERROR, "Client write buffer too big, disconnecting client");
 | 
			
		||||
		sway_log(SWAY_ERROR, "Client write buffer too big (%zu), disconnecting client",
 | 
			
		||||
				client->write_buffer_size);
 | 
			
		||||
		ipc_client_disconnect(client);
 | 
			
		||||
		return false;
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue