keep-alive

ASP.NET AJAX and keeping the Session alive - What is the standard way to do it?

Long time ASP.NET Webforms developer, new to Ajax development (mostly via the UpdatePanel control !). Since no postbacks are happening the server does not reset the user’s session timeout counter, even though a user is interacting with a page and refreshing parts of it. I would like to know what is the simplest and standard way of keep...

long running http connection never gets response back

I am making an http request which ends up taking more than 8 mins. For me, this long running request work fine. I am able to get a response back to my browser without any issues. (I am located on the same network as the server). However, for some users, the browser never returns any response. (Note: When the same http request executes i...

Keep session alive forever as stackoverflow

I need to keep the session live unless until the user clicks logout in my asp.net mvc(C#) application. When the user closes the browser and opens again, the session should continue with the values. I am trying to implement as in stackoverflow. Any ideas/suggestions? ...

iPhone app running while screen locked

Here is something I am trying desperately to get to work: I have an app that polls the GPS module in specified intervals and then sends out coords out to a server using Unix calls such as write(); It works fine when the app is active, but once the screen locks itself, reporting stops. I have found this: [UIApplication sharedApplication...

apache proxy to tomcat keep alive confusion

I have an apache 2.2 server infront of a tomcat 6 server. using mod_proxy_ajp on apache to proxy requests to tomcat. pretty standard setup. If I need to disable keep-alive connections for browsers, how do i do this? I need to do disable keep-alive http requests because i suspect some of my users have firewalls that might be dropping an...

How to grab live text from a URL?

Im trying to grab all data(text) coming from a URL which is constantly sending text, I tried using PHP but that would mean having the script running the whole time which it isn’t really made for (I think). So I ended up using a BASH script. At the moment I use wget (I couldn’t get CURL to output the text to a file) wget --tries=0 --ret...

Pushing data from the server to browser via http

In general chat application, client's browser always poll to server to check for new messages. // the function to check new messages in server function check(){ // but this question is less about jQuery. $.ajax({ type: "POST", url: "check.aspx", data: "someparam=123", success: function(msg){ // process msg h...

Keep connection open for multiple web service requests

Hello, I would have question regarding web services. Let's say I have webservice client that has to perform under high load. And I cannot use another technology. Is it possible somehow to keep the connection open for all requests, to avoid overhead when establishing new tcp/ip connections? And in case of managed environment, is it possi...

Keeping an ajax web page functioning after hours of being idle

I have a one page web app so there is no page refreshing. Sometimes I leave the page open overnight and I come back in the morning and start interacting with it again. Usually I find I have to refresh. Javascript performs incorrectly - edit-in-place loads weird data, ajax calls don't fire... It's nothing to do with the backend, it seems ...

Python stream http client with keep-alive

Hi. I need a python http client that can reuse connections and that supports consuming the stream as it comes in. It will be used to parse xml streams, sax style. I came up with a solution, but I'm not sure it is the best one (there are quite a few ways of writing an http client in python) class Downloader(): def __init__(self, h...

How can I disable keep-alive on ASP.NET Web Service client requests?

I have a few web servers behind an Amazon EC2 load balancer. I'm using TCP balancing on port 80 (rather than HTTP balancing). I have a client polling a Web Service (running on all web servers) for new items every few seconds. However, the client seems to stay connected to one server and polls that same server each time. I've tried usin...

Keep-alive for long-lived HTTP session (not persistent HTTP)

At work, we have a client-server system where clients submit requests to a web server through HTTP. The server-side processing can sometimes take more than 60 seconds, which is the proxy timeout value set by our company's IT staff and cannot be changed. Is there a way to keep the HTTP connection alive for longer than 60 seconds (preferab...

Keeping a web request alive.

I have a web application , that helps download reports. But the report generation sometimes takes a lot of time, and the web request times out through the intermediate proxy server.(Timeout :90 secs). The workflow for downloading the report is straightforward. Client sends request to the web server. The web server generates the report ,...

Relation between HTTP Keep Alive duration and TCP timeout duration

I am trying to understand the relation between TCP/IP and HTTP timeout values. Are these two timeout values different or same? Most Web servers allow users to set the HTTP Keep Alive timeout value through some configuration. How is this value used by the Web servers? is this value just set on the underlying TCP/IP socket i.e is the HTTP ...

Android - VPN at the native layer

Just a quick question as Google isn't throwing up much. Is it possible to create a VPN connection using native code in Android? And if so does the VPN offer support for keep alives? ...

disable keep-alive in NSURLConnection

How can I disable keep-alive when using NSURLConnection? Seems, that after cancelling and close it it still saves somewhere a socket that I was connected to server with and while the server fetches for information i cannot access another urls from the same server. I wonder if there is a way to completely reset a socket and start another ...

How to disable Keep-Alive per Directory

Is it possible to disable Keep-Alive on a directory basis? For example, I have an API that runs on something like domain.com/api/ It'd be nice if KeepAlive was not used on any requests in the /api/ directory. Update/Solution: SetEnvIf Request_URI /api/ nokeepalive Source: http://httpd.apache.org/docs/2.2/env.html ...

Java TCP keep-alive for a master server

Context: Master server (Java, TCP) monitoring a list of hosted games (a different machine for the master server and for each hosted game server). Any user can host a game on his PC. Hosted games can last weeks or months. Need: Knowing when hosted game servers are closed or no longer reachable. Restriction 1: Can't rely on hosted server...

SO_KEEPALIVE development

Hi All, I am using a stack for embedded systems and implementing TCP/IP application using it. But I am having a problem, the problem is that the stack doesn't supports SO_KEEPALIVE option and I want to use it. Can anyone suggest the implementation for this option or any other alternative option which can be used for same function? If so...

"Connection: Keep-Alive" in server response

Hi, I'm trying to establish a HTTP persistent connection from a Silverlight application to a PHP page (ie without creating a new TCP connection for each HTTP request) hosted by an Apache server. To this end, I need the webserver to send its HTTP responses with the "Connection" header set to "Keep-alive". Client-side, there doesn't seem...