Skip to content

Commit

Permalink
explain max_message_size and the fact that changing the value may cau…
Browse files Browse the repository at this point in the history
…se crashes
  • Loading branch information
or-else committed Jul 31, 2021
1 parent e144d6c commit 9db2d83
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/tinode.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@
"api_key_salt": "T713/rYYgW7g4m3vG6zGRh7+FM1t0T8j13koXScOAj4=",

// Maximum message size allowed from the clients in bytes (262144 = 256KB).
// Intended to prevent malicious clients from sending very large messages in-band
// (does not affect out-of-band large files).
// Media files with sizes greater than this limit are sent out of band.
// Don't change this limit to a much higher value because it would likely cause crashes:
// on Android & iOS due to a limit on the SQLite cursor window size;
// on the server-side with MySQL adapter due to the limit on the sort buffer size.
"max_message_size": 262144,

// Maximum number of subscribers per group topic.
Expand Down

0 comments on commit 9db2d83

Please sign in to comment.