Re: mod_python performs several magnitudes slower than PHP?

2007-05-21 Thread Winfried Tilanus
On 05/20/2007 Graham Dumpleton wrote: Hi, > A more suitable example for comparison would have been: And are there any benchmarks with this new version available? Just curious... best wishes, Winfried -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to find IP address?

2006-09-15 Thread Winfried Tilanus
On 09/15/2006 Lad wrote: > How can be HTTP_X_FORWARDED_FOR easily spoofed? I thought that IP > address is not possible change. Because it is a header that is added by the proxy. This header has (or should have) no role in the proces of relaying the request by the proxy. It is just politely added

Re: can i set up a mysql db connection as a class ?

2006-04-28 Thread Winfried Tilanus
ppose that is possible because you are calling the one instance of a > cursor object ... maybe you have to create a copy of the cursor object, > rather than passing a reference to the one object? or set up the > db_connection objects inside each of the threads? .. > > Winfried Ti

Re: can i set up a mysql db connection as a class ?

2006-04-27 Thread Winfried Tilanus
On 04/28/2006 07:54 AM, *binarystar* wrote: Just wondering: is there any risk of two threads accessing the Execute function at the same time and getting something like this on the same cursor object: thread_1: self.cursor.Execute( sql_statement ) thread_2: self.cursor.Execute( sql_statement ) thr