[CP] reduce sql_nio IO_BUFFER_SIZE to reduce the memory hold of session

This commit is contained in:
obdev
2023-04-20 06:11:17 +00:00
committed by ob-robot
parent 8a94e3f887
commit fe7d87dfc1

View File

@ -131,7 +131,7 @@ private:
class ReadBuffer class ReadBuffer
{ {
public: public:
enum { IO_BUFFER_SIZE = 1<<16 }; enum { IO_BUFFER_SIZE = (1<<15) - 128};
ReadBuffer(int fd): fd_(fd), has_EAGAIN_(false), request_more_data_(false), ReadBuffer(int fd): fd_(fd), has_EAGAIN_(false), request_more_data_(false),
alloc_buf_(NULL), buf_end_(NULL), cur_buf_(NULL), data_end_(NULL), alloc_buf_(NULL), buf_end_(NULL), cur_buf_(NULL), data_end_(NULL),
consume_sz_(0) consume_sz_(0)