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

Ask a Question related to PHP Development, Design and Development.

  1. #1

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

    ID: 25070
    Updated by: [email]sniper@php.net[/email]
    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:

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

    For Windows:

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




    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 [url]http://bugs.php.net/?id=25070&edit=1[/url]

    sniper@php.net Guest

  2. Similar Questions and Discussions

    1. FIXED: ASP Session stopped working across pages
      Thought I'd post this in case it's useful to other searchers in the future. On one of my sites I noticed that session variables had suddenly...
    2. #25070 [Opn->Csd]: Apache is stopped on intesive session work
      ID: 25070 Updated by: iliaa@php.net Reported By: akss at plesk dot ru -Status: Open +Status: Closed...
    3. #25070 [Opn]: Apache is stopped on intesive session work
      ID: 25070 User updated by: akss at plesk dot ru -Summary: Windows is stopped on intesive session work Reported By: ...
    4. #25070 [Fbk->Opn]: Windows is stopped on intesive session work
      ID: 25070 User updated by: akss at plesk dot ru Reported By: akss at plesk dot ru -Status: Feedback +Status: ...
    5. #25070 [NEW]: Windows is stopped on intesive session work
      From: akss at plesk dot ru Operating system: Windows PHP version: 4.3.2 PHP Bug Type: Session related Bug description: ...
  3. #2

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

    ID: 25070
    Updated by: [email]sniper@php.net[/email]
    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 [url]http://bugs.php.net/?id=25070&edit=1[/url]
    sniper@php.net Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139