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  
Barry Pearce


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


 
04-09-05 12:45 PM

Hi,

> One small question, as I don't think I understand this completely. In
> the case of FileSession semaphores become used only with the lock calls
> enabled, not without them, right? And in the worst case, if the locks
> where there they would create a semaphore per session until the cleanup
> function gets called and deletes them? Does it works likes this?

The offshoot conversation on locking which I caused probably isnt helpful...

The underlying code use mutexes anyway - or a lockfile and as long as
apache is running it will clean up.  So yes it does work as you said.

When I implemented my sessions I wanted control over the session id and
under no circumstances wanted to use a cookie - I use pure server side
sessions - which cause more hassle, and given that at the time I was not
familiar with the _apache stuff in mod_python and therefore produced a
different locking system for my own file bases sessions.

WRT the FileSession class its best to use the locking as provided by the
_apache stuff - as Grisha says it does a great job.

All that needs to be ensured is that locks are of request duration and
not session duration.

Sorry for muddying the waters!

Cheers,
Barry






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:43 PM.      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