Hello,
I have win32 application in which winsock is used for TCP/IP communication.
I am setting keepalive value with WSAIoctl function and it is working normally with windows XP.
But on Win. Server 2008 WSAIoctl fails, and WSAGetLastError returns 10022(invalid arguments) which does not make any sense.
My code which sets keepalive is fo...
Hi all,
I have an ASP.NET MVC application that transmits audio files via a "Music" Controller and "Music" ActionResult. With this, I can serve files through our routing engine (i.e. www.mysite.com/music/stream/id=42) and do other nifty server-side stuff like logging.
I also have a Flash music player (developed by a contractor) to rec...
Hi,
I'm trying to find out how exactly keep-alive works in .NET but link from here doesn't work. Could anybody post a link with specification?
What I'm looking for:
I would like to know how often are the keep-alive packets sent.
Do I have to set KeepAlive via command:
s.SetSocketOption (SocketOptionLevel.Socket, SocketOptionName.Ke...
Hi all,
I am currently running a web app that sees several (~15) users logging in once each day, and then leaving the web app open where it automatically refreshes with new content every 5 minutes. Each user tends to have it open for about 15-18 hours.
However at critical mass (~30-40) users everything starts to slow down dramatically ...
Keep-Alive connection feature in HTTP protocol is meant to reduce TCP connection hits to web server. It should be able to improve web server performance. However, I found that some web servers deliberately disable KeepAlive feature from server side.
In my understanding, some reverse proxy, i.e. HAProxy, disables HTTP keep-alive in orde...
I have read in a site that another benefit of having Lighttpd in front of Apache is lower number of child processes. Lighttpd will handle keep-alive and client requests while child processes of Apache gets to serve dynamic pages faster because of the very low latency communication between Lighttpd and Apache. I am trying to find the link...
I have a small bug in my client app that uses NSURLConnection. I have tracked it down to an unexpected connection keep-alive that seems to confuse the web server (probably a bug on the server side). The workaround would be to force-close all outstanding connections at a certain point. Can I do this somehow with NSURLConnection, i.e. some...
I ve started a timer to visit my application every 20 minuates in Applicaiton_start in global.asax.
void Application_Start(object sender, EventArgs e)
{
System.Timers.Timer tm = new System.Timers.Timer(20 * 60 * 1000);
tm.Elapsed += new System.Timers.ElapsedEventHandler(tm_Elapsed);
}
void tm_Elapsed(object sender, System.Timers.Elaps...
I have been trying to implement the TCP_KEEPALIVE parameter for a C server socket and I can't seem to figure out how to check if the socket is marked as broken. I followed this tutorial for configuring the socket to do the keep alive but it says that "If no ACK response is received for nine consecutive times, the connection is marked as...
After scanning the urllib2 source, it seems that connections are automatically closed even if you do specify keep-alive.
Why is this?
As it is now I just use httplib for my persistent connections... but wonder why this is disabled (or maybe just ambiguous) in urllib2.
...
Hi, first of all, I know there is only support for voip, audio and location apps to run in background and that they will run just while the audio is been played or while using location services, etc.
What I want to know is if there is a way to keep my app running on background fully operational, doesn't matter the impact on battery's li...
I was under the impression that not calling Response.Flush would ensure that Connection: Close would not be returned. So how do I return Connection: Keep-Alive?
I am using the following code to return a file from ASP.NET.
Response.ContentType = type;
Response.AppendHeader("Content-Length", bytes.Length.ToString());
Response.Cache.SetCa...
How can I keep a WCF service alive between requests?
The service is creating a simple cache in memory on initialisation and I dont want the service to have to re-initialise between requests.
The cache is built up using data extracted from a database and so for efficiency i only need this to be done rarely.
The database is not going to ...
Hi,
I have a SOAP server process that fails with "EOF" errors. Does anybody know if EOF faults are related with keep alive timeouts? If yes how? My code is in C/C++
...