From: Ulf Wendel Date: Thu, 8 Oct 2009 16:33:17 +0000 (+0000) Subject: Avoid buffer resizing and let the initial buffer allocation happen a couple of lines... X-Git-Tag: php-5.4.0alpha1~191^2~2532 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=410804abc48eaa76dbf23b3c517aa37c8e1bd778;p=php 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. --- diff --git a/ext/mysqlnd/mysqlnd.c b/ext/mysqlnd/mysqlnd.c index 2be880c1d3..a3f0abbe22 100644 --- a/ext/mysqlnd/mysqlnd.c +++ b/ext/mysqlnd/mysqlnd.c @@ -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); {