Opened 16 years ago

Closed 15 years ago

Last modified 15 years ago

#683 closed defect (fixed)

HttpServerConnection.RenderRuntimeMap timeout

Reported by: MaksimS Owned by: ksgeograf
Priority: low Milestone:
Component: Maestro Version:
Severity: major Keywords:
Cc: External ID:

Description

Didn't want to go after reopening of #675 since this one is different.

During lenghty RenderRuntimeMap() operations (I mean - lenghty on a MG server side, i.e. querying some heavy feature source), HttpServerConnection.RenderRuntimeMap() throws timeout exception. And it happens far below 5 minutes (as in a SVN), maybe after some 20-30 seconds at most. Here's a short example:

' Creating a runtime map
conn.CreateRuntimeMap(rtMapId, mapDef)

' Getting created runtime map instance
Dim rtMap As RuntimeClasses.RuntimeMap = conn.GetRuntimeMap(rtMapId)

' Very heavy layer turned on, returning 20.000 or more parcels
rtMap.Layers("PARCELS").Visible = True

' Commit a change, everything runs fine...
conn.SaveRuntimeMap(rtMapId, rtMap)

' Bang - here's where exception is being thrown after lenghty processing on MG server side
conn.RenderRuntimeMap(rtMapId, 6437225.3698, 4961979.8236, 5000, 400, 400, 75)

Exception being thrown:

System.Net.WebException was unhandled by user code
  Message="The operation has timed out"
  Source="System"
  StackTrace:
       at System.Net.HttpWebRequest.GetResponse()    at OSGeo.MapGuide.MaestroAPI.HttpServerConnection.RenderRuntimeMap(String resourceId, Double x, Double y, Double scale, Int32 width, Int32 height, Int32 dpi)    at PredmetMapa.Page_Load(Object sender, EventArgs e) in D:\DEV\Legalizacija\PredmetMapa.aspx.vb:line 34    at System.Web.UI.Control.OnLoad(EventArgs e)    at System.Web.UI.Control.LoadRecursive()    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  InnerException: 

This seems to happen occasionally, probably depending on actual MG server resource utilization. Maybe AJAX viewer has a solution for this since it never returned timeouts on lengthy operations.

Change History (4)

comment:1 by ksgeograf, 16 years ago

Status: newassigned

comment:2 by ksgeograf, 16 years ago

Can you confirm or deny that the fix works in r3289 or later?

comment:3 by ksgeograf, 15 years ago

Resolution: fixed
Status: assignedclosed

No response, closing ticket. Please re-open if it does not work.

comment:4 by ksgeograf, 15 years ago

Version: 2.0.1
Note: See TracTickets for help on using tickets.