aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2012-09-12 21:14:55 +0200
committerMelanie2012-09-12 21:14:55 +0200
commitd8e9188908bd1f6ab505e5424f02071b44f0fab1 (patch)
tree5ef3eddc68238d7d0d8302eb5642aed804009abb
parentAdd a timer to time out upload caps handlers that are not used. (diff)
downloadopensim-SC_OLD-d8e9188908bd1f6ab505e5424f02071b44f0fab1.zip
opensim-SC_OLD-d8e9188908bd1f6ab505e5424f02071b44f0fab1.tar.gz
opensim-SC_OLD-d8e9188908bd1f6ab505e5424f02071b44f0fab1.tar.bz2
opensim-SC_OLD-d8e9188908bd1f6ab505e5424f02071b44f0fab1.tar.xz
Stop expiry timer when upload is complete. Log if timeout is reached.
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
index c4a9a19..116055a 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
@@ -1149,6 +1149,7 @@ namespace OpenSim.Region.ClientStack.Linden
1149 res = LLSDHelpers.SerialiseLLSDReply(uploadComplete); 1149 res = LLSDHelpers.SerialiseLLSDReply(uploadComplete);
1150 1150
1151 httpListener.RemoveStreamHandler("POST", uploaderPath); 1151 httpListener.RemoveStreamHandler("POST", uploaderPath);
1152 m_timeoutTimer.Stop();
1152 1153
1153 // TODO: probably make this a better set of extensions here 1154 // TODO: probably make this a better set of extensions here
1154 string extension = ".jp2"; 1155 string extension = ".jp2";
@@ -1172,6 +1173,7 @@ namespace OpenSim.Region.ClientStack.Linden
1172 1173
1173 private void TimedOut(object sender, ElapsedEventArgs args) 1174 private void TimedOut(object sender, ElapsedEventArgs args)
1174 { 1175 {
1176 m_log.InfoFormat("[CAPS]: Removing URL and handler for timed out mesh upload");
1175 httpListener.RemoveStreamHandler("POST", uploaderPath); 1177 httpListener.RemoveStreamHandler("POST", uploaderPath);
1176 } 1178 }
1177 1179