I do not know. I do not think it was a corrupt system but if the problem comes back let us know.
On Mar 3, 1:09 am, Markus Schmitz <[email protected]> wrote: > Hi Massimo and everybody else, > > sorry for my late reply. I was out for two days presenting a prototype > based on web2py on a conference and just came back to the office. As a > quick feedback: Attendees were really impressed and excited about, > what they saw. > > Now back to my problem: > > I am a bit embarrassed and also confused. Today in the morning I first > reproduced the problem a couple of times. I started the first browser > (chrome). web2py answers immediately. I started the second (firefox) > and it hangs for around 2 minutes and then comes back. > > Then I tried the session unlock bit and the behavior vanished. But now > it comes, I removed the session unlock from the code and now I can not > reproduce the problem anymore!!!! > > What is going on? Did I have a hanging/corrupt session? That session > is somehow on disk as it even survived a restart of my development > machine? > > Confused, as I do not understand, and embarrassed, as I can reproduce > my own problems. > > :-) > > Thanks > > Markus > > On Mar 1, 8:56 pm, Massimo Di Pierro <[email protected]> > wrote: > > > > > > > > > Try add > > > session._unlock(request) > > > at the top of the controller. Does it still lock? > > > On Mar 1, 12:55 am, Markus Schmitz <[email protected]> wrote: > > > > Hi everybody, > > > > on my development system I use sqllite, because it allows me to > > > conveniently backup my database, which contains a good amount of > > > configuration data. > > > > In principle and as long as I access the web site alone, this works > > > fine. But as soon as two users or I myself access the web site with > > > two different browsers, the second browser hangs, when fetching the > > > page. > > > > More or less all my pages write some data to a table for logging > > > purposes on access, so when the first browser connects, sqllite locks > > > the DB. When the second browser connects, the DB is still locked, even > > > though the page of the first request is long delivered. > > > > This only happens under sqllite, not MySQL etc. Also when I disable > > > the logging (ie. the write access) it does not happen. > > > > Any ideas? Do I have to explicitly commit or close the DB connection? > > > > Thanks > > > > Markus

