diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/RestClient.cs | 9 |
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); |