diff options
author | Hummer12007 <hilobakho@gmail.com> | 2017-08-14 20:43:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-14 20:43:37 +0300 |
commit | 6f355c6ff71e457675a05c4f87a7b1f704aff513 (patch) | |
tree | e7eeb089eb0424b32371e207f3642ad159c09a62 | |
parent | e93622e4ee387db5c37d24d7a704cd498a14a0da (diff) |
Raise max ipc message size limit to 256 MB
-rw-r--r-- | sway/ipc-server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/ipc-server.c b/sway/ipc-server.c index 46a37225..26d0be65 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c @@ -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; |