Postings by Simon Walter

APR Table vs. Hash & Array vs. Skip List vs. Ring

Hi everyone,

First of all, I am not sure if this is the right place to ask this.
Please send me to the appropriate mailing list. Thanks.

I want to know basically what the difference is between a table and a
hash table - regarding the APR implementation.

The one difference that stands out to me is that I can iterate over a
hash. So is a hash like a table with a linked list?

Perhaps a table can also be iterated over too. I haven't used tables yet
- nor skip list nor ring.

I will describe my goal:

I have several sets of data that I want to combine in order to iterate
over them all at once.

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.