diff options
author | Justin Clark-Casey (justincc) | 2012-06-22 23:16:18 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-06-22 23:16:18 +0100 |
commit | dca04c7b61abb7b7ea70299a192425ce3bd05937 (patch) | |
tree | c5af21989c732e8bd90b7c95a8ea1b3978c2e5b1 /OpenSim/Region/Framework/Scenes/Tests/EntityManagerTests.cs | |
parent | Avoid race condition between m_PrimObjects iteration in XEngine.PostObjectEve... (diff) | |
download | opensim-SC-dca04c7b61abb7b7ea70299a192425ce3bd05937.zip opensim-SC-dca04c7b61abb7b7ea70299a192425ce3bd05937.tar.gz opensim-SC-dca04c7b61abb7b7ea70299a192425ce3bd05937.tar.bz2 opensim-SC-dca04c7b61abb7b7ea70299a192425ce3bd05937.tar.xz |
Avoid a race condition where an incoming request to a script external URL can trigger an exception is the URL was being removed at the same time.
This involves three steps
1) Return gracefully in UrlModule.HttpRequestHandler() instead of throwing an exception when the url cannot be found in its index
2) Return true instead of false in HasEvents() if no matching request is found in the map. This call will only happen in the first place for raced requests.
3) Return a 404 in GetEvents() if the request is not in the index, rather than a blank 200 OK.
Many thanks to Tom Haines in http://opensimulator.org/mantis/view.php?id=6051 for doing some of the work on this.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/EntityManagerTests.cs')
0 files changed, 0 insertions, 0 deletions