aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/RestClient.cs
diff options
context:
space:
mode:
authorDr Scofield2008-06-27 16:58:21 +0000
committerDr Scofield2008-06-27 16:58:21 +0000
commitfeb30217de48f4b3d869bf13453a945a04ee2524 (patch)
tree9da974ca87997d2bdfdda8c027314b01eb8c299a /OpenSim/Framework/Communications/RestClient.cs
parent* restore suppression of mono addins manager warnings (diff)
downloadopensim-SC-feb30217de48f4b3d869bf13453a945a04ee2524.zip
opensim-SC-feb30217de48f4b3d869bf13453a945a04ee2524.tar.gz
opensim-SC-feb30217de48f4b3d869bf13453a945a04ee2524.tar.bz2
opensim-SC-feb30217de48f4b3d869bf13453a945a04ee2524.tar.xz
dr scofield's warning safari:
* commented out [Obsolete(....)] attributes where no replacement feature was available: if we want to attribute code that we think needs to be reworked, we should define a new attribute and use that instead (together with a little tool to retrieve all the attributed code then) * commenting out unused variables
Diffstat (limited to 'OpenSim/Framework/Communications/RestClient.cs')
-rw-r--r--OpenSim/Framework/Communications/RestClient.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Framework/Communications/RestClient.cs b/OpenSim/Framework/Communications/RestClient.cs
index f6c33a8..b71a590 100644
--- a/OpenSim/Framework/Communications/RestClient.cs
+++ b/OpenSim/Framework/Communications/RestClient.cs
@@ -58,7 +58,7 @@ namespace OpenSim.Framework.Communications
58 { 58 {
59 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 59 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
60 60
61 private string realuri; 61 // private string realuri;
62 62
63 #region member variables 63 #region member variables
64 64
@@ -229,7 +229,7 @@ namespace OpenSim.Framework.Communications
229 sb.Append(kv.Value); 229 sb.Append(kv.Value);
230 } 230 }
231 } 231 }
232 realuri = sb.ToString(); 232 // realuri = sb.ToString();
233 //m_log.InfoFormat("[REST CLIENT]: RestURL: {0}", realuri); 233 //m_log.InfoFormat("[REST CLIENT]: RestURL: {0}", realuri);
234 return new Uri(sb.ToString()); 234 return new Uri(sb.ToString());
235 } 235 }
@@ -250,8 +250,9 @@ namespace OpenSim.Framework.Communications
250 if (read > 0) 250 if (read > 0)
251 { 251 {
252 _resource.Write(_readbuf, 0, read); 252 _resource.Write(_readbuf, 0, read);
253 IAsyncResult asynchronousResult = 253 // IAsyncResult asynchronousResult =
254 s.BeginRead(_readbuf, 0, BufferSize, new AsyncCallback(StreamIsReadyDelegate), s); 254 // s.BeginRead(_readbuf, 0, BufferSize, new AsyncCallback(StreamIsReadyDelegate), s);
255 s.BeginRead(_readbuf, 0, BufferSize, new AsyncCallback(StreamIsReadyDelegate), s);
255 256
256 // TODO! Implement timeout, without killing the server 257 // TODO! Implement timeout, without killing the server
257 //ThreadPool.RegisterWaitForSingleObject(asynchronousResult.AsyncWaitHandle, new WaitOrTimerCallback(TimeoutCallback), _request, DefaultTimeout, true); 258 //ThreadPool.RegisterWaitForSingleObject(asynchronousResult.AsyncWaitHandle, new WaitOrTimerCallback(TimeoutCallback), _request, DefaultTimeout, true);