timeout

trouble hosting asp.net on iis

I'm doing some test hosting of an asp.net program I created I can access it fine from the local machine (both debugging and pointing the virtual directory to it) I can also access (local) by using the localhost or using the ip however when i get on a different machine on the same network (i can ping my machine) I get the following er...

Keyboard input with timeout in Python

How would you prompt the user for some input but timing out after N seconds? Google is pointing to a mail thread about it at http://mail.python.org/pipermail/python-list/2006-January/533215.html but it seems not to work. The statement in which the timeout happens, no matter whether it is a sys.input.readline or timer.sleep(), I always g...

Setting a timeout in a .net desktop application

Hi I have created a little application to move some files around and put them into a database. This is working well except that the application needs a timeout. If my app has not completed the task within 2 hours it re opens and locks out everything. I need to say that if my application has been open for 2 hours close it. One thought...

Where can I find the default timeout settings for all browsers?

I'm looking for some kind of documentation that specifies how much time each browser (IE6/IE7/FF2/FF3, etc) will wait on a request before it just gives up and times out. I haven't had any luck trying to get this. Any pointers? Thanks! Daniel ...

IBM WebSphere Message Broker SOAP request timeout

Created .NET WCF service, tested it - works. Generated schemas from Data and service contracts, put messages to Message Broker generated Message Flow from it, tested it using simple mapping (requestMessage=responceMessage) - works. Also I can reach MB from another application and send/recieve SOAP messages. But when I try to create requ...

Default Transaction Timeout

I used to set Transaction timeouts by using TransactionOptions.Timeout, but have decided for ease of maintenance to use the config approach: <system.transactions> <defaultSettings timeout="00:01:00" /> </system.transactions> Of course, after putting this in, I wanted to test it was working, so reduced the timeout to 5 seconds, ...

Detecting forms authentication timeout in login page

When you have forms authentication setup to redirect to login.aspx when accessing a protected page, what's a good way to detect in login.aspx whether the user was sent there because they haven't logged on yet, or because their forms auth ticket is expired? I'd like to display a "you've timed out" message. (I do not mention the word sess...

Django: How can you stop long queries from killing your database?

I'm using Django 1.1 with Mysql 5.* and MyISAM tables. Some of my queries can take a TON of time for outliers in my data set. These lock the tables and shut the site down. Other times it seems some users cancel the request before it is done and some queries will be stuck in the "Preparing" phase locking all other queries out. I'm going...

"Connection Interrupted" on a asp.net server

When I try to run a really long action (takes around 2 minutes locally) on my live server, I get this error: Connection Interrupted The connection to the server was reset while the page was loading. The network link was interrupted while negotiating a connection. Please try again. I changed the timeout to be 1 hour: <httpRuntime ex...

How to set timeout for Java Wireless Toolkit generated web service calls?

I have used the Java Wireless Toolkit Stub Generator to create a bunch of web service call stubs for a mobile app (BlackBerry J2ME app). The problem I'm having is that there doesn't appear to be any way to set a timeout on the calls. This causes the app to sit and wait for at least a minute waiting to timeout if the web service that is c...

Windows service running on Windows Server 2003 cannot call an xml web service on the same machine

Hello all, I have an XML web service running on my Windows 2003 server. I have a windows service running on the same machine. I want to call the XML web service from the windows service. This works fine on my development machine, which is running Windows XP. However, when I try to do this on my Windows Server 2003 box, it times ou...

Implementing a timeout on a function returning a value

I have a function that calls out a read or write request on a serial port and then returns the value that was read. I am using Commstudio express (I'm implementing a class from Commstudio) , but it's timeout features don't appear to work at all, so I'm trying to implement my own timeout. Currently I have a timer that is set upon request ...

How to define Transaction Timeout during debugging application.

I am testing whether option from app.config listed below Is applied to all transactions in the application. <system.transactions> <defaultSettings timeout="00:05:00" /> </system.transactions> Transaction are defined using transaction scope in following way using (TransactionScope transactionScope = new TransactionScope(Transactio...

Connection timed out problem when testing on iPhone device

When i test my iPhone application on simulator there is no problem. But when i try to test it on iPhone device via xcode, connection:didFailWithError is triggered and the localized description of the error is 'timed out'. What can be the reason for the time out on device? ...

Oracle connection/query timeout

Is it possible to specify connection/query timeout for the Oracle database queries? Either on Oracle side or in Oracle's JDBC driver (10.2.0.4)? So, that Java client just got an error back after, let's say, 2 minutes instead of waiting until Oracle finishes executing the query? ...

Get JTA transaction timeout value in WebLogic

Is there a way to get JTA transaction timeout value? UserTransaction interface has only setTransactionTimeout method. Is there a specific way of getting its value in WebLogic? ...

JaxWsPortProxyFactoryBean query timeout

Hello I'm using a JaxWsPortProxyFactoryBean (from Spring framework) to access a web-service. I would like to change the timeout of the http queries I'm sending. Is there a way to do this? Thank you by advance for any help ...

Implementing timeout for calling generic function with parameters.

I am trying to get my head around the use of the Action delegate type for use in forcing a timeout when methods called in a 3rd party COM dll hang up. After much searching I find that I can use Action<> or Func<> and pass up to 4 generic parameters depending on whether the method called returns a parameter or not. For this instance I wi...

How to detect session timeouts when using cookieless sessions.

I'm currently working on a ASP.Net 3.5 project and trying to implement session timeout detection. I know how to do it with enabled session cookies, but without i'm totally lost. When session timeout occurs i want to redirect the user to some custom page. Can someone explain me how to do it? My cookie based solution looks like this an...

php fsockopen unable to connect, connection timeout error

Hello, I am running a local apache server on an ubuntu machine, and i am trying to use the phpmailer class to send mail. It tries to connect by fsockopen to the mail server, but it throws a timeout error. I tried setting the timeout to 15sec with no luck. It does work on other machines. How can i find out if my ISP has blocked requests...