Re: [Wikitech-l] sessions in parallel

2009-12-07 Thread Jared Williams
 

 -Original Message-
 From: wikitech-l-boun...@lists.wikimedia.org 
 [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of 
 lee worden
 Sent: 06 December 2009 23:26
 To: Wikimedia developers
 Subject: Re: [Wikitech-l] sessions in parallel
 
 
  -Original Message-
  From: wikitech-l-boun...@lists.wikimedia.org
  [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of lee 
  worden
  Sent: 04 December 2009 19:14
  To: Wikimedia developers
  Subject: [Wikitech-l] sessions in parallel
 
  Hi -
 
  I'm debugging my extension code against potential deadlock 
  conditions, and am having a problem: when I request 2 pages 
  simultaneously in different firefox tabs, judging by the wfDebug 
  output it seems like the second page request blocks at 
  session_start() and waits until the first page is done.
  Is it supposed to do this?  Does it depend on my configuration?
 
  Thanks -
  Lee Worden
  McMaster University
 
 
  If I remember correctly, the PHP files session handler has 
 to acquire 
  an exclusive lock on the session file in session_start(). Thus 
  preventing your second request until the first is complete.
 
  Jared
 
 Thanks!
 I have to log in as 2 people from 2 different browsers, I guess.
 LW
 

Or configure MediaWiki  PHP to use something like MemCache.

http://www.mediawiki.org/wiki/Manual:$wgSessionsInMemcached

Jared


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] sessions in parallel

2009-12-07 Thread lee worden

 Hi -

 I'm debugging my extension code against potential deadlock
 conditions, and am having a problem: when I request 2 pages
 simultaneously in different firefox tabs, judging by the wfDebug
 output it seems like the second page request blocks at
 session_start() and waits until the first page is done.
 Is it supposed to do this?  Does it depend on my configuration?

 Thanks -
 Lee Worden
 McMaster University


 If I remember correctly, the PHP files session handler has
 to acquire
 an exclusive lock on the session file in session_start(). Thus
 preventing your second request until the first is complete.

 Jared

 Thanks!
 I have to log in as 2 people from 2 different browsers, I guess.
 LW


 Or configure MediaWiki  PHP to use something like MemCache.

 http://www.mediawiki.org/wiki/Manual:$wgSessionsInMemcached

 Jared

Noted, thanks.
Lee

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] sessions in parallel

2009-12-06 Thread lee worden

 -Original Message-
 From: wikitech-l-boun...@lists.wikimedia.org
 [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of
 lee worden
 Sent: 04 December 2009 19:14
 To: Wikimedia developers
 Subject: [Wikitech-l] sessions in parallel

 Hi -

 I'm debugging my extension code against potential deadlock
 conditions, and am having a problem: when I request 2 pages
 simultaneously in different firefox tabs, judging by the
 wfDebug output it seems like the second page request blocks
 at session_start() and waits until the first page is done.
 Is it supposed to do this?  Does it depend on my configuration?

 Thanks -
 Lee Worden
 McMaster University


 If I remember correctly, the PHP files session handler has to acquire
 an exclusive lock on the session file in session_start(). Thus
 preventing your second request until the first is complete.

 Jared

Thanks!
I have to log in as 2 people from 2 different browsers, I guess.
LW

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


Re: [Wikitech-l] sessions in parallel

2009-12-05 Thread Jared Williams
 

 -Original Message-
 From: wikitech-l-boun...@lists.wikimedia.org 
 [mailto:wikitech-l-boun...@lists.wikimedia.org] On Behalf Of 
 lee worden
 Sent: 04 December 2009 19:14
 To: Wikimedia developers
 Subject: [Wikitech-l] sessions in parallel
 
 Hi -
 
 I'm debugging my extension code against potential deadlock 
 conditions, and am having a problem: when I request 2 pages 
 simultaneously in different firefox tabs, judging by the 
 wfDebug output it seems like the second page request blocks 
 at session_start() and waits until the first page is done. 
 Is it supposed to do this?  Does it depend on my configuration?
 
 Thanks -
 Lee Worden
 McMaster University
 

If I remember correctly, the PHP files session handler has to acquire
an exclusive lock on the session file in session_start(). Thus
preventing your second request until the first is complete.

Jared


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l


[Wikitech-l] sessions in parallel

2009-12-04 Thread lee worden
Hi -

I'm debugging my extension code against potential deadlock conditions, and 
am having a problem: when I request 2 pages simultaneously in different 
firefox tabs, judging by the wfDebug output it seems like the second page 
request blocks at session_start() and waits until the first page is done. 
Is it supposed to do this?  Does it depend on my configuration?

Thanks -
Lee Worden
McMaster University

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l