diff options
author | Oren Hurvitz | 2014-08-05 19:09:11 +0300 |
---|---|---|
committer | Oren Hurvitz | 2014-08-05 19:09:11 +0300 |
commit | dc2471feddb8bab96513a64e43e3f52d27e7307c (patch) | |
tree | 0f67abd9cb1d84407048980017f1f5724e6696fa /OpenSim | |
parent | Go back to disconnecting bots in parallel since serially is too slow. (diff) | |
download | opensim-SC_OLD-dc2471feddb8bab96513a64e43e3f52d27e7307c.zip opensim-SC_OLD-dc2471feddb8bab96513a64e43e3f52d27e7307c.tar.gz opensim-SC_OLD-dc2471feddb8bab96513a64e43e3f52d27e7307c.tar.bz2 opensim-SC_OLD-dc2471feddb8bab96513a64e43e3f52d27e7307c.tar.xz |
Fixed premature closing of the connection in DataSnapshotManager
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/DataSnapshot/DataSnapshotManager.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs index 33899aa..66f768b 100644 --- a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs +++ b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs | |||
@@ -392,22 +392,22 @@ namespace OpenSim.Region.DataSnapshot | |||
392 | { | 392 | { |
393 | m_log.Warn("[DATASNAPSHOT]: Ignoring unknown exception " + e.ToString()); | 393 | m_log.Warn("[DATASNAPSHOT]: Ignoring unknown exception " + e.ToString()); |
394 | } | 394 | } |
395 | } | ||
396 | 395 | ||
397 | byte[] response = new byte[1024]; | 396 | byte[] response = new byte[1024]; |
398 | // int n = 0; | 397 | // int n = 0; |
399 | try | 398 | try |
400 | { | 399 | { |
401 | // n = reply.Read(response, 0, 1024); | 400 | // n = reply.Read(response, 0, 1024); |
402 | reply.Read(response, 0, 1024); | 401 | reply.Read(response, 0, 1024); |
403 | } | 402 | } |
404 | catch (Exception e) | 403 | catch (Exception e) |
405 | { | 404 | { |
406 | m_log.WarnFormat("[DATASNAPSHOT]: Unable to decode reply from data service. Ignoring. {0}", e.StackTrace); | 405 | m_log.WarnFormat("[DATASNAPSHOT]: Unable to decode reply from data service. Ignoring. {0}", e.StackTrace); |
406 | } | ||
407 | // This is not quite working, so... | ||
408 | // string responseStr = Util.UTF8.GetString(response); | ||
409 | m_log.Info("[DATASNAPSHOT]: data service " + url + " notified. Secret: " + m_Secret); | ||
407 | } | 410 | } |
408 | // This is not quite working, so... | ||
409 | // string responseStr = Util.UTF8.GetString(response); | ||
410 | m_log.Info("[DATASNAPSHOT]: data service " + url + " notified. Secret: " + m_Secret); | ||
411 | } | 411 | } |
412 | 412 | ||
413 | } | 413 | } |