Timeline for Getting progress updates (via AJAX) on a controller action without blocking
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 24, 2014 at 11:46 | comment | added | Anibal | PHP's APC works in memory, instead of any disk caching. Therefore, some way of serialization may be ocurring internally. | |
| Jul 23, 2014 at 12:12 | comment | added | codinghands | Using PHP's APC caching mechanism I can make this work, just not with JSession. This makes me think it's not a race condition as it wouldn't work full stop otherwise... | |
| Jul 22, 2014 at 19:42 | comment | added | Anibal | I think the case you are describing is caused by a race condition. At the end, Javascript is running several threads trying to get answers from PHP running a single user session (in a single thread). | |
| Jul 22, 2014 at 12:39 | comment | added | codinghands | Thanks for taking the time to answer, however I'm not sure how this applies to my scenario. I have 2 separate AJAX calls to different methods in a given class, both of which are responding (and not blocking). The issue is JSession values seem to be locked until the first call finishes. Or am I missing something? | |
| Jul 22, 2014 at 12:17 | history | answered | Anibal | CC BY-SA 3.0 |