Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | remove C++ comments | Andrey Hristov | 2009-12-15 | 1 | -2/+2 | |
| | ||||||
* | export this function | Andrey Hristov | 2009-12-15 | 2 | -2/+2 | |
| | ||||||
* | refactor: move code that belongs to MYSQLND_NET out of MYSQLND | Andrey Hristov | 2009-12-15 | 3 | -98/+152 | |
| | ||||||
* | - fix build, come on, it is not that hard to test before commit, is it? | Pierre Joye | 2009-12-11 | 1 | -1/+3 | |
| | ||||||
* | Make MYSQLND_NET dynamically allocated structure with allocator | Andrey Hristov | 2009-12-11 | 4 | -93/+136 | |
| | | | | | and deallocator. More member functions will come. | |||||
* | remove stale comment | Andrey Hristov | 2009-12-11 | 1 | -1/+0 | |
| | ||||||
* | Move two functions which are used in the extension as methods of | Andrey Hristov | 2009-12-11 | 6 | -111/+100 | |
| | | | | | the connection. Two functions less in the global namespace. | |||||
* | bump version number | Andrey Hristov | 2009-12-10 | 1 | -2/+2 | |
| | ||||||
* | Add plugin storage for MYSQLND_STMT too | Andrey Hristov | 2009-12-10 | 3 | -2/+19 | |
| | ||||||
* | Remove stub code which never actually was used for anything. | Andrey Hristov | 2009-12-09 | 7 | -187/+1 | |
| | | | | | Things like this can be built on top of the core. | |||||
* | Remove the zval caching from mysqlnd. It was disabled versions ago | Andrey Hristov | 2009-12-09 | 13 | -891/+68 | |
| | | | | | | due to problems on windows, which were not debugged. Better have code that is disabled not in the core. | |||||
* | Fix compilation warnings | Andrey Hristov | 2009-12-09 | 1 | -41/+38 | |
| | ||||||
* | Remove disabled code - threaded fetching. This can be implemented | Andrey Hristov | 2009-12-09 | 9 | -796/+2 | |
| | | | | | | on a upper level and by offloading it we reduce the complexity of the core. | |||||
* | I svn-commit.2.tmp (Modified) ↵ | Andrey Hristov | 2009-12-03 | 1 | -3/+1 | |
| | | | | | | | | Row 2 Col 28 11:45 Ctrl-K H for help fix compilation on windows and with other compilers who don't like void* arithmetic | |||||
* | - disable this debug code until it is actually fixed | Pierre Joye | 2009-12-03 | 1 | -0/+2 | |
| | ||||||
* | fix segfault introduced by Pierre in a recent commit | Andrey Hristov | 2009-12-03 | 1 | -1/+1 | |
| | | | | | | | | old code was doing something like conn + sizeof(MYSQLND) * MYSQLND + plugin * sizeof(void) * sizeof(MYSQLND) because `conn` is not casted to void*. `conn` has to be casted to void * and then the whole experession will be void * and the calculations will work. | |||||
* | fix macro so that 5-byte BIT values are decoded correctly | Andrey Hristov | 2009-12-02 | 1 | -4/+4 | |
| | ||||||
* | - void is NaN, you can't do math ops on void. Declarations go first. Fix TS ↵ | Pierre Joye | 2009-11-30 | 3 | -3/+3 | |
| | | | | build | |||||
* | fix debug windows build as well as remove a compilation warning | Andrey Hristov | 2009-11-26 | 4 | -4/+5 | |
| | | | | | (a header not included) | |||||
* | Update charset table | Andrey Hristov | 2009-11-24 | 1 | -3/+43 | |
| | ||||||
* | Compressed protocol support + extensibility for mysqlnd | Andrey Hristov | 2009-11-20 | 15 | -353/+840 | |
| | ||||||
* | Fix: log slow queries in stats regardless of mysqlnd.log_mask setting. | Ulf Wendel | 2009-10-23 | 1 | -1/+1 | |
| | ||||||
* | Don't forget to update the length too | Andrey Hristov | 2009-10-22 | 1 | -0/+1 | |
| | ||||||
* | Have the lengths also to skip many calls to strlen | Andrey Hristov | 2009-10-22 | 2 | -2/+25 | |
| | ||||||
* | Updating mysqlnd version number. | Ulf Wendel | 2009-10-22 | 1 | -2/+2 | |
| | ||||||
* | Fixing stats, updating test to accept new stats | Ulf Wendel | 2009-10-22 | 1 | -1/+0 | |
| | ||||||
* | Move definition | Andrey Hristov | 2009-10-22 | 2 | -8/+9 | |
| | ||||||
* | Count number of affected_rows for normal and PS queries | Andrey Hristov | 2009-10-22 | 4 | -1/+15 | |
| | ||||||
* | Fixing host info for TCP/IP and aligning mysqlnd and libmysql | Ulf Wendel | 2009-10-19 | 1 | -3/+4 | |
| | ||||||
* | Extending mysqlnd statistics/monitoring. Now counting COM_* commands. | Ulf Wendel | 2009-10-16 | 3 | -1/+61 | |
| | ||||||
* | Making mysqlnd emit no warnings when fetching pooled persistent connections ↵ | Ulf Wendel | 2009-10-15 | 4 | -7/+8 | |
| | | | | that have timed out or are unusable for any other reason - bug #49761 | |||||
* | Fixing problems when calling connect (again and again) on a valid connection ↵ | Ulf Wendel | 2009-10-15 | 2 | -3/+15 | |
| | | | | handle. Most of the patch comes from Andrey. | |||||
* | Avoid buffer resizing and let the initial buffer allocation happen a couple ↵ | Ulf Wendel | 2009-10-08 | 1 | -2/+0 | |
| | | | | 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. | |||||
* | Fixing pconnect statistics. | Ulf Wendel | 2009-10-08 | 1 | -3/+2 | |
| | ||||||
* | Increase the minimal size of the command buffer, which is used | Andrey Hristov | 2009-10-07 | 3 | -3/+20 | |
| | | | | | | for sending queries and in the future commpressed patch for reading almost all packets from the wire instead of using stack buffers. | |||||
* | revert the last change | Andrey Hristov | 2009-10-06 | 2 | -5/+0 | |
| | ||||||
* | count the queries | Andrey Hristov | 2009-10-06 | 2 | -0/+5 | |
| | ||||||
* | Fix ZTS build | Andrey Hristov | 2009-09-30 | 5 | -21/+23 | |
| | ||||||
* | Use mnd_ wrappers wherever possible. Needed for | Andrey Hristov | 2009-09-30 | 6 | -27/+33 | |
| | | | | | statistics. | |||||
* | Fix trace output. DBG_RETURN should be used in traced | Andrey Hristov | 2009-09-30 | 1 | -2/+2 | |
| | | | | | functions. | |||||
* | Fixing a leak in mysqlnd when passing invalid fetch modes to mysqlnd. | Ulf Wendel | 2009-09-30 | 1 | -15/+4 | |
| | ||||||
* | - fix TS build, this macro contains code and declaration, always put it ↵ | Pierre Joye | 2009-09-28 | 1 | -2/+2 | |
| | | | | right after your declaration | |||||
* | Fix possible crash when conn is NULL | Andrey Hristov | 2009-09-25 | 1 | -1/+1 | |
| | ||||||
* | - Fix the build issue with php_mysqlnd_config.h ending up in wrong build ↵ | Jani Taskinen | 2009-09-24 | 2 | -7/+7 | |
| | | | | directory | |||||
* | Fixed compilation error | Dmitry Stogov | 2009-09-23 | 1 | -0/+4 | |
| | ||||||
* | sync with branch, after Ulf's commits | Andrey Hristov | 2009-09-22 | 1 | -1/+3 | |
| | ||||||
* | Check for the different types and create the | Andrey Hristov | 2009-09-22 | 1 | -3/+4 | |
| | | | | | | corresponding configuration file, so it can be used by mysqli, even if mysqlnd is not enabled at all. | |||||
* | Afix not included by the fix committed by Ulf. | Andrey Hristov | 2009-09-17 | 1 | -1/+1 | |
| | | | | | | | pemalloc and then efree - too bad! Sorry for committing in two passes, my big tree is already patched with compressed. | |||||
* | Fix (by Andrey) and test for bug #49442 . Don't use efree() for memory ↵ | Ulf Wendel | 2009-09-16 | 3 | -7/+9 | |
| | | | | allocated with malloc()... If a connection gets created by mysqli_init(), mysqlnd makes it 'persistent'. 'Persistent' means that mysqlnd uses malloc(). mysqlnd does use malloc() instead of ealloc() because it is unknown if the connection will become a true persistent connection in the sense of ext/mysqli. It is unknown if the user wants a persistent connection or not until the user calls mysqli_real_connect(). To avoid tricky conversions mysqlnd uses malloc(), which sets a private persistent flag in the mysqlnd structures. A precondition for the crash to happen was that the private persistent flag is set. The flag is also set when creating a real persistent connection (in the sense of ext/mysqli) and so the bug can happen with mysql_init()/mysqli_real_connect() and mysql_connect('p:<host>', ...). Therefore we test both cases. Note the (tricky?) difference between the implementation detail'mysqlnd private persistent flag = use malloc()' and persistent connections from a user perspective. Although mysqlnd will always set its private persistent flag and use malloc() for connections created with mysqli_init() it is still up to the user to decide in mysqli_real_connect() if the connection shall become a (true) persistent connection or not. | |||||
* | Fix and tests for bug #49511 . mysqlnd and the MySQL Client Library ↵ | Ulf Wendel | 2009-09-16 | 3 | -0/+7 | |
| | | | | (libmysql) use different networking APIs. mysqlnd does use PHP streams whereas libmysql uses its own wrapper of the operating level network calls. PHP sets by default a read timeout of 60s for streams - php.ini, default_socket_timeout. This default applies to all streams that set no other timeout value. mysqlnd has not set any other value and therefore it connections of long running queries can have been cut off after default_socket_timeout seconds resulting in a 2006 - MySQL Server has gone away error message. The MySQL Client Library sets a default timeout of 365 * 24 * 3600 seconds (1year) and waits for other timeouts to happen, e.g. TCP/IP timeouts. mysqlnd now uses the same very long timeout. The value is configurable through a new php.ini setting: mysqlnd.net_read_timeout. mysqlnd.net_read_timeout gets used by any extension (ext/mysql, ext/mysqli, PDO_MySQL) that uses mysqlnd. mysqlnd tells PHP Streams to use mysqlnd.net_read_timeout. Please note that there may be subtle differences between MYSQL_OPT_READ_TIMEOUT from the MySQL Client Library and PHP Streams. E.g. MYSQL_OPT_READ_TIMEOUT is documented to work only for TCP/IP connections and, prior to MySQL 5.1.2, only for Windows. PHP streams may not have this limitation. Please check the streams documentation, if in doubt. |