Re: [Mailman-Developers] MySQLMemberships.py

2006-12-15 Thread Fil
I have upgraded MysqlMemberships.py member adaptor once again, this time solving (I think) the problem of disconnection/reconnection when the link to the SQL server has died. In my tests it works fine (reconnects) when I kill the link with "mysqladmin kill NNN" However I don't know what strategy

[Mailman-Developers] MySQLMemberships.py

2006-12-15 Thread Fil
Hello, I have upgraded the MysqlMemberships.py member adaptor, so that it uses only one connection for all lists, and not one connection per list (as it did before). Everything works fine (only one day of operation though), except when the mysql link is broken (I stopped mysqld to check that). Th

Re: [Mailman-Developers] MysqlMemberships.py

2006-03-17 Thread Fil
Hello, I have updated the MysqlMembership extension http://trac.rezo.net/trac/rezo/browser/Mailman/MySQLMemberAdaptor/MysqlMemberships.py I would appreciate it if someone could verify that this patch indeed potentially fixes the "TypeError" bug we used to get on some SetBounceInfo: http://trac.r

Re: [Mailman-Developers] MysqlMemberships.py

2005-11-24 Thread Fil
> What sort of setting does the MySQL server you are running have for timing > out idle connections? Could it be that you aren't "hitting" it often > enough? In which case, going away a lot is normal. Right. It's optimized for apache (short connexions), so I guess it's normal :) -- Fil ___

Re: [Mailman-Developers] MysqlMemberships.py

2005-11-23 Thread John W. Baxter
On 11/23/05 3:38 AM, "Fil" <[EMAIL PROTECTED]> wrote: >> Unfortunately this still doesn't succeed reconnecting to the server: I get >> this traceback: >> >> File "/var/local/mailman/Mailman/MysqlMemberships.py", line 141, in >> _prodServerConnection >> if self.connection.ping() == 0: Operat

Re: [Mailman-Developers] MysqlMemberships.py

2005-11-23 Thread Fil
> Unfortunately this still doesn't succeed reconnecting to the server: I get > this traceback: > > File "/var/local/mailman/Mailman/MysqlMemberships.py", line 141, in > _prodServerConnection > if self.connection.ping() == 0: OperationalError: (2006, 'MySQL server > has gone away') A littl

Re: [Mailman-Developers] MysqlMemberships.py [was: Informal "MEP"process, anyone? [was: PHP Wrappers?]]

2005-11-22 Thread Mark Sapiro
Fil wrote: > >Unfortunately this still doesn't succeed reconnecting to the server: I get >this traceback: > > File "/var/local/mailman/Mailman/MysqlMemberships.py", line 141, in > _prodServerConnection >if self.connection.ping() == 0: OperationalError: (2006, 'MySQL server has > gone away')

Re: [Mailman-Developers] MysqlMemberships.py [was: Informal "MEP"process, anyone? [was: PHP Wrappers?]]

2005-11-21 Thread Fil
@ Fil <[EMAIL PROTECTED]> : > > I'm running the patch as is, and there's trouble. Here is the error log: > > OK, good. A quick fix is to add on line 153 > self.cursor = self.connection.cursor() > > The correct fix would be to isolate the connection/reconnection procedure in > a unique fun

Re: [Mailman-Developers] MysqlMemberships.py [was: Informal "MEP"process, anyone? [was: PHP Wrappers?]]

2005-11-20 Thread Fil
> I'm running the patch as is, and there's trouble. Here is the error log: OK, good. A quick fix is to add on line 153 self.cursor = self.connection.cursor() The correct fix would be to isolate the connection/reconnection procedure in a unique function, but that'll be for later. -- Fil

Re: [Mailman-Developers] MysqlMemberships.py [was: Informal "MEP"process, anyone? [was: PHP Wrappers?]]

2005-11-20 Thread Fil
> If looked at this a bit more closely, and it turns out not to be quite > that simple. The major issue is the way things currently exist in your > MysqlMemberships.py, rev 19, 'connection' is a local variable in the > MysqlMemberships class __init__ method. It is not visible to > _prodServerConnec

Re: [Mailman-Developers] MysqlMemberships.py [was: Informal "MEP"process, anyone? [was: PHP Wrappers?]]

2005-11-20 Thread Mark Sapiro
Mark Sapiro wrote: >in _prodServerConnection(), you can't do > >if ping(self.connection) == 0: > >you need to do > >if self.connection.ping() == 0: If looked at this a bit more closely, and it turns out not to be quite that simple. The major issue is the way things currently exist in you

Re: [Mailman-Developers] MysqlMemberships.py [was: Informal "MEP" process, anyone? [was: PHP Wrappers?]]

2005-11-19 Thread Mark Sapiro
Fil wrote: > >Well, it currently has a "works *not* for me" flavor and I'd appreciate som >help on the two outstanding bugs I still have (in my version, but I guess >Kev's version has them too). Yes, Kev's has them too, at least the 1.61 version. >1) if the DB connection dies or fades away, pin