mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
increase payload size allowance
This commit is contained in:
parent
b5a2dd5f5b
commit
c2029b178f
1 changed files with 4 additions and 5 deletions
|
@ -68,10 +68,10 @@ developers.
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "webui.h"
|
#include "webui.h"
|
||||||
|
|
||||||
#define MAX_LINE 4096
|
#define MAX_LINE 8192
|
||||||
#define POOL_CLIENTS_GROW 1024
|
#define POOL_CLIENTS_GROW 1024
|
||||||
#define RPC_BODY_MAX 4096
|
#define RPC_BODY_MAX 8192
|
||||||
#define JOB_BODY_MAX 2048
|
#define JOB_BODY_MAX 8192
|
||||||
#define ERROR_BODY_MAX 512
|
#define ERROR_BODY_MAX 512
|
||||||
#define STATUS_BODY_MAX 256
|
#define STATUS_BODY_MAX 256
|
||||||
#define CLIENT_JOBS_MAX 4
|
#define CLIENT_JOBS_MAX 4
|
||||||
|
@ -2323,8 +2323,7 @@ client_on_read(struct bufferevent *bev, void *ctx)
|
||||||
output = bufferevent_get_output(bev);
|
output = bufferevent_get_output(bev);
|
||||||
|
|
||||||
size_t len = evbuffer_get_length(input);
|
size_t len = evbuffer_get_length(input);
|
||||||
if (len > MAX_LINE ||
|
if (len > MAX_LINE)
|
||||||
(client->mode == MODE_SELF_SELECT && len > MAX_LINE<<2))
|
|
||||||
{
|
{
|
||||||
const char *too_long = "Message too long\n";
|
const char *too_long = "Message too long\n";
|
||||||
evbuffer_add(output, too_long, strlen(too_long));
|
evbuffer_add(output, too_long, strlen(too_long));
|
||||||
|
|
Loading…
Reference in a new issue