7/1/2025 7:35:10 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
|
|
|
|
Server timeout issue
Posted: 28 Dec 09 5:07 PM
|
I have a case where I am creating (as an example) 1000 MyHistory records... but the operation never completes, I am getting a request timeout. Do I need to sleep() ? or do some type of keep alive (ie, Update progress?) to prevent the timeout.
|
|
|
|
Re: Server timeout issue
Posted: 28 Dec 09 7:12 PM
|
This is one of the Issues with Web Technologies: how to deal with Long running Transactions.
IE, IIS and ASP.Net have many settings that control the timeout of requests. So, whenever an operation reaches such a timeout it will send an error message to the user. These timeouts can be adjusted (check the httpruntime item on the Web.config), however you need to weight your reasons to do so.
For instance, if you are having issues with Large File Uploads that are timing out due to Network Latency, then yes, go ahead and increase the Timeout to prevent the uploads to fail. However,if you are running a long operation on the Server (which seems to be what you are doing), I would suggest that you reconsider your approach and use an asynchronous method (such as having a separate Web Service running to handle the operation). Depending on the usage of your system, it may even improve performance as it would move those lengthy operations out of the Web Process.
|
|
|
|
Re: Server timeout issue
Posted: 29 Dec 09 8:55 AM
|
What I am trying to do is something along the lines of Importing leads. I want to create, say 5000 history records on the click of a button. Importing leads doesnt seem to ever time out. I was trying to review the ImportLead code, but it is hard to follow without it being loaded as a full project into a tool such as VS. So I was just trying to figure out how Slogix prevents timeouts, and it seems that a seperate 'process' is fired off from the main dialog?!? That seem correct? |
|
|
|
Re: Server timeout issue
Posted: 29 Dec 09 10:00 PM
|
Yeah, you would run an asynchronous process that handles that request. I have handle the exact scenario that you are presenting several times and have a sort of Template to do so.
I create a Queue table that has the necessary fields to handle the request and any parameters. Whenever the request is instantiated, a record is added to the Table with a status that indicates that it is a new request. A Windows Service on the background (same or separate server depending on your hardware constraints) checks the queue every few minutes and when it encounters that record it starts processing it. When the service is done, it updates the Status to "Complete". On the UI, you handle is so that the Button on the View remains disabled while there is a pending Entry on the Queue. At the same time, if there is a pending entry on the queue, you enable a timer so that the page would recheck the status every so many seconds. |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|