#25070 [Opn->Fbk]: Windows is stopped on intesive session work

Posted: 08-13-2003, 09:31 AM
ID: 25070
Updated by: sniper@php.net
Reported By: akss at plesk dot ru
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Windows
PHP Version: 4.3.2
New Comment:

Please try using this CVS snapshot:

http://snaps.php.net/php4-STABLE-latest.tar.gz

For Windows:

http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2003-08-13 04:16:44] akss at plesk dot ru

Description:
------------
php-4.3.2

Windows hangs at frequent references to the pages using the sessions
mechanism. This is because too many locks are created for a session
file "sess_xxx".



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=25070&edit=1

Reply With Quote

Responses to "#25070 [Opn->Fbk]: Windows is stopped on intesive session work"

sniper@php.net
Guest
Posts: n/a
 
#25070 [Opn->Fbk]: Windows is stopped on intesive session work
Posted: 08-26-2003, 03:02 AM
ID: 25070
Updated by: sniper@php.net
Reported By: akss at plesk dot ru
-Status: Open
+Status: Feedback
Bug Type: Session related
Operating System: Windows
PHP Version: 4.3.3
New Comment:

I've been trying to reproduce this without luck..can you please give a
simple test case with which you have reproduced this reliably?



Previous Comments:
------------------------------------------------------------------------

[2003-08-20 03:30:03] akss at plesk dot ru

Patch for fix ext/session/mod_files.c on windows:

--- mod_files.c.orig Tue May 20 20:01:54 2003
+++ mod_files.c Fri Aug 15 05:12:40 2003
@@ -124,6 +124,7 @@
static void ps_files_close(ps_files *data)
{
if (data->fd != -1) {
+ flock(data->fd, LOCK_UN);
close(data->fd);
data->fd = -1;
}
@@ -275,8 +276,10 @@
if (data->fd < 0)
return FAILURE;

- if (fstat(data->fd, &sbuf))
+ if (fstat(data->fd, &sbuf)) {
+ flock(data->fd, LOCK_UN);
return FAILURE;
+ }

data->st_size = *vallen = sbuf.st_size;
*val = emalloc(sbuf.st_size);
@@ -287,6 +290,7 @@
lseek(data->fd, 0, SEEK_SET);
n = read(data->fd, *val, sbuf.st_size);
#endif
+ flock(data->fd, LOCK_UN);

if (n != sbuf.st_size) {
if (n == -1)
@@ -325,6 +329,7 @@
lseek(data->fd, 0, SEEK_SET);
n = write(data->fd, val, vallen);
#endif
+ flock(data->fd, LOCK_UN);

if (n != vallen) {
if (n == -1)

Other case apache hangs up.

------------------------------------------------------------------------

[2003-08-13 04:16:44] akss at plesk dot ru

Description:
------------
php-4.3.2

Windows hangs at frequent references to the pages using the sessions
mechanism. This is because too many locks are created for a session
file "sess_xxx".



------------------------------------------------------------------------


--
Edit this bug report at http://bugs.php.net/?id=25070&edit=1
Reply With Quote
 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
#25070 [NEW]: Windows is stopped on intesive session work akss at plesk dot ru PHP Development 0 08-13-2003 09:16 AM
BUG: CGI.Session on Windows Lothar Scholz Ruby 1 07-21-2003 01:36 AM
session across satelite windows Thomas Hochstetter PHP Development 0 07-15-2003 08:55 PM
Session doesn't work Darrell Blake PHP Development 0 07-11-2003 05:17 PM
Session variable seems not work Simon PHP Development 0 07-10-2003 05:46 AM