* HttpStandaloneReplyChannel.cs : do not try to enter close loop
between request context and this.
svn path=/trunk/mcs/; revision=159489
+2010-06-24 Atsushi Enomoto <atsushi@ximian.com>
+
+ * HttpStandaloneReplyChannel.cs : do not try to enter close loop
+ between request context and this.
+
2010-06-23 Atsushi Enomoto <atsushi@ximian.com>
* HttpStandaloneChannelListener.cs
void AbortConnections (TimeSpan timeout)
{
- // FIXME: find out how and what it should handle this situation.
+ if (reqctx != null)
+ reqctx.Close (timeout);
}
+ bool close_started;
+
protected override void OnClose (TimeSpan timeout)
{
+ if (close_started)
+ return;
+ close_started = true;
DateTime start = DateTime.Now;
- if (reqctx != null)
- reqctx.Close (timeout);
// FIXME: consider timeout
AbortConnections (timeout - (DateTime.Now - start));