Project

General

Profile

Actions

Feature #2721

open

fix long hangs while there is a pending http request

Added by Anonymous over 10 years ago. Updated about 10 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
Start date:
04/16/2014
Due date:
% Done:

0%

Estimated time:

Description

Has anyone else noticed that all open leginon and appion tabs hang while one is busy? This is best seen by starting a particle picking test in appion, and while waiting for the results no other open tab works, not even when switching between images in the viewer. To a lesser degree this means all requests to php scripts that open the session get served serially rather than in parallel.

I think the problem is that PHP sessions are locked, and can only be accessed by one request at a time.
I tested this by explicitly closing the session in the runTemplateCorrelator.php at the very top with the following line:

session_write_close();

this allowed me to keep using the viewer while waiting for the picker to finish.

I don't know how broadly applicable this change is since I'm not sure how often session data is accessed and for what. Ideally you could put this is some central include after all the necessary session parameters have been read.

Actions

Also available in: Atom PDF