timeout

.NET windows service aborted during system shutdown

My windows service is a data server with substantial cache. During service OnStop I save the cache so that no data is lost. Saving cache may take several minutes so to prevent windows service manager from timeout I use SetServiceStatus Win32 callback: this.serviceStatus.currentState = (int)State.SERVICE_STOP_PENDING; this.serviceStatus....

jQuery posts loading

Hello! I have 2 functions $.post jQuery, how to make the 2nd $.post carried out only after the loading of the first $.post completely finished? But I can not use $.post within $.post because the second $.post called from flash function play(id, file, dur, who, hname, artist, song) { if($.cookie('scrobb') == 'on') { setTi...

jquery addClass - wait, delay, speed, timeout or other

Hi The question has been posted several times and is how to delay an addClass. I got this: $("#menu ul li").hover(function(){ $(this).addClass("hover"); },function(){ $(this).removeClass("hover"); }) And want something similar but where the class is added after 500msek or so. Best answer so far is this one using settimeout. Mayb...

Session Timeout extend in asp.Net

How to extend the session timeout? I tried entering: Session.Timeout = 720; in formLoad and also tried in webconfig: But still it times out after 10 minutes. Can any one help about this issue? ...

How to timeout a thread

I want to run a thread for some fixed amount of time. If it is not completed within that time, I want to either kill it, throw some exception, or handle it in some way. How can it be done? One way of doing it as I figured out from this thread is to use a TimerTask inside the run() method of the Thread. Are there any better solutions fo...

ASPxGridView POST timeout

Hello all, I have a ASPxGridView with DetailRow in this row there are three additional ASPxGridViews. Each detail ASPxGridView contains EmptyDataRow templates with link to create a new row: <a href="javascript:gridViewDetails1.AddNewRow();">AddNewRecord</a> When master ASPxGridView rows is 1 or 2 then new rows in detail grids adding ...

Can I set the timeout for UdpClient in C#?

Hello All. I am wondering whether I can set a timeout value for UdpClient receive method. I want to use block mode, but because sometimes udp will lost packet, my program udpClient.receive will hang there forever. any good ideas how I can manage that? ...

BEA / Oracle Aqualogic BPM question

Hi Guys, I'm using BEA Aqualogic BPM 5.7 and after a while I'm getting the time out screen. It says BEA Aqualogic Hiper WorkSpace for BPM, your session has expired and it has a "Login again" button. Does anybody know how to change that screen or how to increase the time out so the user does not see that screen so often? Thanks in adva...

Managing session timeouts in ASP.NET

I have a ASP.NET 2.0 Web Application talking to multiple ASP.NET 2.0 Web Services. Both use ASP.NET Sessions to persist session data. To warn the user about session timeouts of the app, I use a modified version of Travis Collins's Timeout Control to show a ModalPopupExtender titled 'Your session is about to expire' and buttons 'Stay Log...

How do I create a timeout for user input in TCL ?

I have a large TCL script that, at points asks the user questions like, "Please enter your choice : A, B or C ?" The user has to type in the character and press "Enter" to continue to script. Is there anyway I can automate this in TCL? Something like, if the user doesn't enter anything within 10 seconds, by default option A will be take...

Kill a Javascript process after a set amount of time

I apologize if this is a duplicate. Let's say I have a JavaScript function that calls a web service to pull some data. I use some kind of moving graphic to let the user know it's working. When it is successfully retrieved, I change the graphic to a check mark. Here's my code: getData: function() { $("#button").attr("disabled", "tru...

Sending emails with PHPMailer()

I have created a newsletter system and my question is: How should i write my code considering that i have to send that mail to hundreds of email addresses? I've discussed with my host administrator and he told me that i should send my emails one by one but not more than 6 per minute. Can i use the $Timeout property? If so, how? Tha...

Boost interprocess anonymous condition timed_wait not compilable

Hi... I'm wondering what I'm doing wrong... with a sole wait it compiles and runs, but not with a timed_wait: using boost::interprocess::scoped_lock; using boost::interprocess::interprocess_mutex; using boost::posix_time::milliseconds; [...] scoped_lock<interprocess_mutex> lock(obj->mutex); while (...) { obj->condition.timed_wait(...

Wicket: how to handle long running tasks

Hey all, I've setup a Wicket + Hibernate + Spring Web application that involves gathering some data (having some files generated and returned), storing this in a database, creating some images and displaying all this on a webpage. This all works fine for short runs, but sometimes gathering the data (which involves some remote number cr...

Intermittent SQL timeouts

Since a few days ago, the SQL server (Microsoft SQL Server 2005) backing our site has started occasionally timeouting. It is happening at seemingly random times approximately every hour or two. It usually takes about 10 minutes during which we see hundreds of timeouted requests. Under normal circumstances, most of our queries take less t...

weird php file upload problem

Hi, i am having strange issues regarding file upload on my windows system. I am using windows 7 with iis7 on the server. i am trying on a client comp with local ip 10.47.47.13 and the server is 10.47.47.1. I have a very simple form which i couldnt make it work in some cases. the page stays on the wwwroot. ( http://10.47.47.1/3.php) 3.ph...

Use timeouts in a HTTP Server?

Should I use Timeouts in a HTTP Server implementation? E.g. if I get a request and create a HTTP Connection to listen to requests with a separate Thread, should this thread use timeouts? Currently I don't use Timeouts in Debug Code, only in Production code, as to find the lockups in the Server. ...

How to manage timeout with Silverlight2 beta2 WebClient ?

Hello, I have a Silverlight application that manages images and associated metadata stored on a server. The user can also load several images in the SL module and upload them to the server. I am using System.Net.WebClient. In that case, 1 asynchronous request is sent per image. In case the server crashes, I see in Firebug that all the ...

What determines how long does an out of process COM server takes to notice that a client has died?

In a simple windows setup we have a COM singleton that runs as an out of process server. Clients connect by calling cocreate and each receives an interface to the same instance of the server. If clients shutdown normally they release their references. The server has a bit of logic that keeps it alive for a short time after the last re...

NHibernate command_timeout setting from Web.config

We have a couple of long running back-end processes that take longer than the default 30 seconds. Our NHibernate version is 2.0.1.4000 and Spring.NET is 1.2.0.20313. NHibernate is configured through Spring.NET this way: <object id="SessionFactory" type="Spring.Data.NHibernate.LocalSessionFactoryObject, Spring.Data.NHibernate20"> <p...