mirror of
https://github.com/php/php-src.git
synced 2024-09-23 19:07:26 +00:00
Avoid buffer resizing and let the initial buffer allocation happen a couple of lines later with conn->m->set_client_option(conn, MYSQLND_OPT_NET_CMD_BUFFER_SIZE, ...). Andrey, I leave it to you to change the default size to 128k.
This commit is contained in:
parent
6a47a5f426
commit
410804abc4
@ -757,8 +757,6 @@ PHPAPI MYSQLND *mysqlnd_connect(MYSQLND *conn,
|
||||
SET_EMPTY_ERROR(conn->error_info);
|
||||
|
||||
conn->zval_cache = mysqlnd_palloc_get_thd_cache_reference(zval_cache);
|
||||
conn->net.cmd_buffer.length = 128L*1024L;
|
||||
conn->net.cmd_buffer.buffer = mnd_pemalloc(conn->net.cmd_buffer.length, conn->persistent);
|
||||
|
||||
mysqlnd_local_infile_default(conn);
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user