Hi all, I'm investigating a bug in some software where basically two users press search at the same time and one gets the others results back. I believe this to be a combination of things.
- the connection is a a singleton that is shared across all instances on the server
- when search is pressed an async ajax callback is used to send the results to the grid.
This is the sequence of events that i think are happening 1. user 1 searches ->thread 1 (client side) 2. user 2 searches ->thread 2 (client side)
- a callback is registered (server side)
a callback is registered (server side)
the singleton for the connection is obtained (server side)
thread two is locked out (server side)
thread 1 search completes
all registered callbacks are told that the function has complete with the following result (server side)
thread 1(client side) gets results
- thread 2(client side) gets results
Am I correct in assuming that this is the behaviour of an ajax async callback; Once the callback has complete all registered callers (not specifically the caller that called it initially) are notified?
Cheers, Mark