+2005-07-25 Eyal Alalouf <eyala@mainsoft.com>
+ * System.Web.vmwcsproj removed System.Web/TimeoutManager.cs from TARGET_J2EE
+
2005-07-24 Eyal Alalouf <eyala@mainsoft.com>
* System.Web.vmwcsproj added System.Web.UI/PageHandlerFactory.jvm.cs
<File RelPath="System.Web\SiteMapResolveEventArgs.cs" SubType="Code" BuildAction="Compile"/>\r
<File RelPath="System.Web\StaticFileHandler.cs" SubType="Code" BuildAction="Compile"/>\r
<File RelPath="System.Web\StaticSiteMapProvider.cs" SubType="Code" BuildAction="Compile"/>\r
- <File RelPath="System.Web\TimeoutManager.cs" SubType="Code" BuildAction="Compile"/>\r
<File RelPath="System.Web\TraceContext.cs" SubType="Code" BuildAction="Compile"/>\r
<File RelPath="System.Web\TraceData.cs" SubType="Code" BuildAction="Compile"/>\r
<File RelPath="System.Web\TraceManager.cs" SubType="Code" BuildAction="Compile"/>\r
+2005-07-25 Eyal Alalouf <eyala@mainsoft.com>
+ * HttpContext.cs HttpRuntime.cs HttpApplication.cs: timeout is not supported
+ in TARGET_J2EE configuration (no Thread.Abort support).
+
2005-07-25 Eyal Alalouf <eyala@mainsoft.com>
* QueueManager.cs: TARGET_J2EE fixes.
* HttpApplicationFactory.cs: TARGET_J2EE fixes.
internal void Start ()
{
Reset ();
-#if !TARGET_J2EE
- ExecuteNextAsync (null);
-#else
+#if TARGET_J2EE
ExecuteNext(null);
+#else
+ ExecuteNextAsync (null);
#endif
}
#if TARGET_J2EE
private Exception HandleJavaException(Exception obj)
{
- Exception lasterror = null;
+ Exception lasterror = obj;
if (obj is System.Reflection.TargetInvocationException )
{
_app.Context.EndTimeoutPossible ();
}
}
-#if TARGET_J2EE //Catch case of aborting by timeout
- if (_app.Context.TimedOut) {
- _app.CompleteRequest ();
- return null;
- }
-#endif
if (state.PossibleToTimeout) {
// Async Execute
_app.Context.TryWaitForTimeout ();
SaveThreadCulture ();
_savedContext = HttpContext.Context;
HttpContext.Context = _Context;
+#if !TARGET_J2EE
HttpRuntime.TimeoutManager.Add (_Context);
+#endif
SetPrincipal (_Context.User);
}
internal void OnStateExecuteLeave ()
{
RestoreThreadCulture ();
+#if !TARGET_J2EE
HttpRuntime.TimeoutManager.Remove (_Context);
+#endif
HttpContext.Context = _savedContext;
RestorePrincipal ();
}
}
#endif
-#if TARGET_J2EE
- private bool _timedOut;
- internal bool TimedOut {
- get {
- return _timedOut;
- }
- set {
- _timedOut = value;
- }
- }
-#endif
public IDictionary Items
{
get {
//private bool _firstRequestExecuted;
private Exception _initError;
+#if !TARGET_J2EE
private TimeoutManager timeoutManager;
+#endif
private QueueManager queueManager;
private TraceManager traceManager;
private WaitCallback doRequestCallback;
{
try {
_cache = new Cache ();
+#if !TARGET_J2EE
timeoutManager = new TimeoutManager ();
+#endif
_endOfSendCallback = new HttpWorkerRequest.EndOfSendNotification (OnEndOfSend);
_handlerCallback = new AsyncCallback (OnHandlerReady);
internal void Dispose() {
WaitForRequests (2000);
- queueManager.Dispose (); // Send a 503 to all queued requests
+ if (queueManager != null)
+ queueManager.Dispose (); // Send a 503 to all queued requests
queueManager = null;
_cache = null;
HttpApplicationFactory.EndApplication();
}
}
+#if !TARGET_J2EE
internal static TimeoutManager TimeoutManager {
get {
return HttpRuntime._runtime.timeoutManager;
}
}
+#endif
internal static TraceManager TraceManager {
get {