mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-21 11:30:01 +00:00
Change MG_MAX_RECV_BUF_SIZE -> MG_MAX_RECV_SIZE
This commit is contained in:
1 parent
73a5ff1fb6
commit
a88ea776a9
8 files changed
+12
-12
No files matched your search
+1
-1
@@ -278,7 +278,7 @@ static long mg_sock_recv(struct mg_connection *c, void *buf, size_t len) {
|
||||
// (e.g. FreeRTOS stack) return 0 instead of -1/EWOULDBLOCK when no data
|
||||
static long read_conn(struct mg_connection *c) {
|
||||
long n = -1;
|
||||
if (c->recv.len >= MG_MAX_RECV_BUF_SIZE) {
|
||||
if (c->recv.len >= MG_MAX_RECV_SIZE) {
|
||||
mg_error(c, "max_recv_buf_size reached");
|
||||
} else if (c->recv.size - c->recv.len < MG_IO_SIZE &&
|
||||
!mg_iobuf_resize(&c->recv, c->recv.size + MG_IO_SIZE)) {
|
||||
|
||||
Reference in new issue
Block a user