mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 15:36:29 +01:00
Merge pull request #1324 from Hummer12007/patch-5
Raise max ipc message size limit to 256 MB
This commit is contained in:
commit
c1582f981a
1 changed files with 2 additions and 1 deletions
|
@ -668,7 +668,8 @@ bool ipc_send_reply(struct ipc_client *client, const char *payload, uint32_t pay
|
|||
client->write_buffer_size *= 2;
|
||||
}
|
||||
|
||||
if (client->write_buffer_size > (1 << 22)) { // 4 MB
|
||||
// TODO: reduce the limit back to 4 MB when screenshooter is implemented
|
||||
if (client->write_buffer_size > (1 << 28)) { // 256 MB
|
||||
sway_log(L_ERROR, "Client write buffer too big, disconnecting client");
|
||||
ipc_client_disconnect(client);
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue