Postings by Simon Walter

dumb apr_pool question

Hi everyone,

Am I correct to assume that a pool cannot be forcibly (prematurely)
freed? I was trying to understand apr_hash and wanted to free the memory
allocated for the keys and then try a apr_hash_get.

apr_bucket_split data remains

I am interested in how apr_bucket_split(e, point) works.

It seems that after splitting e, it still contains everything after
point. Only when flattened is this data "removed" from e.

If that is correct, then is it also correct to assume that I would need
to use apr_bucket_read with snprintf and make a copy of the data in
order to display it accurately?

Is there another way to show the contents of buckets after they've been

I need to flatten the brigade (or flush it to a socket?

Connect to MySQL server from a c++ application

What is the most stable and performant way to connect to a MySQL server
from a c++ application?

I've been using libmyodbc via unixODBC running under Debian squeeze.
Suffice it to say, I am sorely disappointed. First of all the libmyodbc
driver that's included with Debian is quite old. However, even after
building and utilizing the latest version, there are still memory leaks
in the driver.

I'm not stuck on using ODBC. Though it's nice to be able to is use an
ODBC library so that I can connect to various DBs without having to
learn new APIs.

SIGABRT & SIGSEGV when using libmyodbc

Hi all,

I'm using libodbc++ which in turn uses libmyodbc. I've had no problems
with connecting to localhost. However, when I switched to production and
the mysql server is no local, my c++ application crashes with either
SIGABRT or SIGSEGV. I'm attaching both back traces.