keep-alive

Ajax keep=alive a good idea?

I'm currently working on a simple CRUD application. One requirement is preventing users from editing things concurrently. In order to do this I "lock" records to see if they're being edited, to prevent other users from editing at the same time. I was thinking a good way of implementing this might be to use an AJAX keep-alive to see if th...

LDAP socket keep-alive

We are using OpenLDAP client library to conect to an LDAP server. The problem is that if there is no activity for some time, server (or firewall in the middle) drops TCP connection. Our current implementation of "keep-alive" just does search for baseDN from time to time - any better ideas ? ...

IIS, XP, SSL vs. KeepAlives

I'm stuck between a rock and a hard place. I'm developing on XP using Studio 2005/IIS. Thus far, this has been problem free for me; until today. I needed to add an SSL cert so I could finish development for a part of the site that runs in SSL using sessions that are only allowed in secure mode. So, I install the cert and fire up studio...

Use HTTP Keep-Alive for server to communicate to client

Recently in an interview I was asked how I would approach an online chat client application. I went through the standard "polling" solution but was cut off because the interviewer was looking for the "HTTP 1.1 keep-alive" method. Having used HTTP for quite a while and remembering that the whole point was to be "stateless", this never o...

How to keep logged instance (httpwebrequest) alive and query another page with it?

Hi, After I've succesfully logged into website using POST variables by httpwebrequest and got response by HttpWebResponse ..How do I query other websites with the "current logged in" instance? Do I save it to some variable?? ...

Keeping my web app running after Browser close

Hello, I have a aspx web application that updates or adds files in a database. The clients access through the browser and one of the requirements is that they can start the update and be able to close the browser while the update continues. It appears to run for a little bit after I close the browser but then it stops. How can you keep...

C# Console Application - Keep it running

Hi, I am about to develop a console application that will be required to continually run and carry out work at specific times. My question is what is are best methods or practices to keep your application alive? My thought were: A loop that never ends? A timer that sleeps and then jumps to routine when required (after set sleep ...

IE7 - meta refresh inside an HTTPS IFRAME causes mixed content warning

I have an ASP.NET application that implements keep-alive by using a hidden IFRAME with a refresh header (or meta refresh tag in the page). For many - but not all - instances of Internet Explorer (reproduced so far on IE7 and IE8 beta - but not for everyone!) if you move between two secure pages that both contain this keep-alive IFRAME, ...

Keeping a live connection with php?

I am working on a project has me constantly pinging a php script for new data, so if I understand this correctly that means that the php script being pinged gets run over and over indefinitely. It works but i'm guessing its a huge strain on the server, and is probably considered ugly and bad practice. Am I right about that? Is there any...

How to keep link alive on mongoose web server

I try to use keep-alive connection mongoose, but it seems mongoose close the connection first. I changed the embed.c to send back the connection: keep-alive. The connection is still closed after response. border@ubuntu:~$ nc 127.0.0.1 9999 GET /test_get_request_info HTTP/1.1 Connection: keep-alive HTTP/1.1 200 OK Content-Type: text/pl...

Scaleability of TCP keep-alive

Consider a large scale, heterogeneous network of various devices. These devices are providing services to others on the network in a peer-to-peer fashion. The mechanism used to track service availabilty across all nodes is currently using TCP sockets marked as keep-alive, usually for the duration the node is online. This leads to ever...

Why are my ASP.NET pages returning `200 OK` without any authentication headers being sent?

Note: This question has broadened in scope from previous revisions. I have tried to simplify the issue so it can be easily reproduced by anyone. Using Fiddler, I can replay an arbitrary request to my default page after erasing my Authorization header from the HTTP request, and I am able to get a response of 200 OK with valid data. ...

Keep alive code fails with new RDP client

Hello - For our Secure Terminal Server project, we have a need to keep the RDP session open, that is, to prevent the remote computer from timing out and locking the session. A little background: We have several virtual servers configured as go-between agents, with a client piece that launches a RDP session to the virtual servers, and ...

Configuring lighttpd for many lightweight concurrent Keep-Alive http connections

I am using lighttpd as a front-end proxy to my custom HTTP based application server. I need to configure lighttpd for a large number (let's say around 5000) simultaneous http connections which have a large timeout and KeepAlive setting. Each connection will sit around mostly idle. Imagine an HTTP based chat server. My HTTP server is usi...

How to keep an App Engine/Java app running with deaf requests from a Java/Python web cron?

App Engine allows you 30 seconds to load your application My application takes around 30 seconds - sometimes more, sometimes less. I don't know how to fix this. If the app is idle (does not receive a request for a while), it needs to be re-loaded. So, to avoid the app needing to be reloaded, I want to simulate user activity by pingin...

Axis Web Service Keep Alive

I have an axis web service running in Tomcat. Clients are making connections without sending a Connection: close header in HTTP 1.1 which means that the default is Keep-Alive. Unfortunately the client seems to be having a problem and when it gets an exception the client is not closing the connection. Since these clients are sending lots ...

Simple comet example using php and jquery

I have searched on google for hours without finding a good and simple example of the comet technique using PHP. I just need an example that uses a persistent HTTP connection or something similar. I dont want to use a polling technique because I have something like that set up and not only is it difficult to work with and manage its a big...

IIS Keep-Alive between web and app server

Hi everyone! We have been having some performance issues with our application for the past couple of weeks. I've come close to posting a couple of times but due to some of our interesting architecture and implementation details, I thought it would be too difficult to try to post enough information for anyone to provide any sense. Part o...

Does a TCP socket connection have a "keep alive"?

I have heard of HTTP keep-alive but for now I want to open a socket connection with a remote server. Now will this socket connection remain open forever or is there a timeout limit associated with it similar to HTTP keep-alive? ...

How do I prevent my .NET SOAP client from including "Connection: KeepAlive" in the HTTP headers. (using WSE3.0)

In the HTTP Connection header, my web service client is including: Connection: Keep-Alive I want to disable this. After doing some research, it appears the way to do this is to set the KeepAlive member of the SoapHttpChannelOptions class to false. But, I do not see a way to access/modify SoapHttpChannelOptions in the webservice clien...