Dear Dev,
I belive I have found in 2.0cvs a few places where the db result is not
freed under mysql, This was causing my imapd to get outragiously large,
like in the 100Mb range, after pulling only about 10000 headers. The
patch I have attached also fixes a minor issue with dbmail and mysql,
and that is that after an overnight the mysql server may timeout the
connections and there isn't a reconnect check in the code for
check_connection like there is in the pgsql driver. I added that as well
as added the mysql specific auto-reconnect option. There is also a minor
missing free in the the authsql.c with the escaped user str.
I also belive there is a leak still with one of the allocated list's
(list.c) not being list freeded, All this memory work was traced with
dmalloc which is a fantastic package, and allows for logfiles per pid as
well as line numbers.
Please review the diff and apply if it suites. I really apreciate
everyones hard work on this project and I am very excited with the
progress and overall stablity of the 2.0 branch as it is now. I have
been running it (after my patches) for about a week now under light load
but have put it under some major stress with the postal stress test
package and it has done very well.
Does the dbmail list know of a better testing suite that fully supports
imap or may have more features?
Thanks,
Leif Jackson
--
Jones Jackson Consulting http://www.jjcons.com
Programmer && Linux Enthusiast ljackson@jjcons.com
"#define QUESTION ((bb) || !(bb))" - Shakespeare
http://www.jjcons.com/pgpkeys.html
I belive I have found in 2.0cvs a few places where the db result is not
freed under mysql, This was causing my imapd to get outragiously large,
like in the 100Mb range, after pulling only about 10000 headers. The
patch I have attached also fixes a minor issue with dbmail and mysql,
and that is that after an overnight the mysql server may timeout the
connections and there isn't a reconnect check in the code for
check_connection like there is in the pgsql driver. I added that as well
as added the mysql specific auto-reconnect option. There is also a minor
missing free in the the authsql.c with the escaped user str.
I also belive there is a leak still with one of the allocated list's
(list.c) not being list freeded, All this memory work was traced with
dmalloc which is a fantastic package, and allows for logfiles per pid as
well as line numbers.
Please review the diff and apply if it suites. I really apreciate
everyones hard work on this project and I am very excited with the
progress and overall stablity of the 2.0 branch as it is now. I have
been running it (after my patches) for about a week now under light load
but have put it under some major stress with the postal stress test
package and it has done very well.
Does the dbmail list know of a better testing suite that fully supports
imap or may have more features?
Thanks,
Leif Jackson
--
Jones Jackson Consulting http://www.jjcons.com
Programmer && Linux Enthusiast ljackson@jjcons.com
"#define QUESTION ((bb) || !(bb))" - Shakespeare
http://www.jjcons.com/pgpkeys.html