Re: [mod_python] Sessions performance and some numbers
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Re: [mod_python] Sessions performance and some numbers




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: [mod_python] Sessions performance and some numbers  
Gregory (Grisha) Trubetskoy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-07-05 10:58 PM



On Thu, 7 Apr 2005, Nicolas Lehuen wrote:

> Grisha, the dbm implementation is pickling to the dbm which stores in
> a file.

Indeen it does, I some for reason did not think about it.

As a sidenote, I think this shows how important it is to always explain
everything in English (rather than code) and have lots of comments.

With this implementation - is there still any advantage to usnig a DBM at
all?

I still think that security needs to be addressed slightly better -
perhaps explicitely setting permissions - perhaps putting sessions in a
subdirectory only readable, writable and executable by apache user would
make it a bit cleaner. The current mod_python DBMSession does not
explicitely set permissions which is a problem. (though inserting a bad
pickle into dbm is slightly harder than just just writing a file and then
calling a url that you know will cause mod_python to attempt to unpickle
it)

Also, I don't see any locking here, I think it's needed.

Lastly - this discussion belongs on the python-dev@httpd list really :-)

Grisha


> It's an extra layer of implementation, so reduced performances
> can be expected.
>
> BTW, both implementation could save time and space by pickling with
> the protocol 2 instead of the protocol 0.
>
> Regards,
> Nicolas
>
> On Apr 7, 2005 6:26 PM, Gregory (Grisha) Trubetskoy
> <grisha@modpython.org> wrote: 
>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:22 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register