Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Paul] GT::Session::File problems

Quote Reply
Re: [Paul] GT::Session::File problems In reply to
GT::Session::File needs also file locking as well ALL open() operation (read or write).

While each session file is unique for each visitor, the visitors many times double clicks to buttons. Therefore the data loss chance is not much less as if the file would be used by many users.
As you know there were several config file data losses for LSQL users on admin interface which has very rare change since usually 1 user uses the admin interface. Likely when an admin double clicked an Update button. So nothing is impossible.

The session file is opened with open():
open ($fh, "> $file") or return $self->error ('CANTOPEN', 'FATAL', $file, "$!");
The do() doesn't matter. After the open() there is GT::Dumper->dump used, and several tasks are done there.
Therefore there *IS* the time slice where 2 processes can which was caused by user multiple click.

But the biggest problem is that it seems, flock() is not used in LSQL almost at all!
The only place where flock is used: GT::FileMan::Commands, which is not really related to other LSQL parts...

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Subject Author Views Date
Thread GT::Session::File problems webmaster33 4271 May 8, 2003, 9:15 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4138 May 8, 2003, 12:11 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4141 May 8, 2003, 1:27 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4200 May 8, 2003, 1:54 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4132 May 8, 2003, 2:49 PM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4125 May 8, 2003, 2:52 PM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4193 May 8, 2003, 2:56 PM
Post Re: [webmaster33] GT::Session::File problems
Paul 4178 May 8, 2003, 3:17 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 4140 May 8, 2003, 3:11 PM
Post Re: [webmaster33] GT::Session::File problems
webmaster33 4153 May 8, 2003, 3:20 PM
Post Post deleted by webmaster33
webmaster33 4133 May 9, 2003, 11:13 AM
Thread Re: [webmaster33] GT::Session::File problems
webmaster33 4110 May 18, 2003, 9:35 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4134 May 18, 2003, 10:24 AM
Thread Re: [Paul] GT::Session::File problems
webmaster33 4139 May 18, 2003, 11:18 AM
Thread Re: [webmaster33] GT::Session::File problems
Paul 4069 May 18, 2003, 11:37 AM
Post Re: [Paul] GT::Session::File problems
webmaster33 4109 May 18, 2003, 11:45 AM