A feature of HTTP where the same connection is used for multiple requests, speeding up downloading of web pages with multiple resources.
Questions tagged [keep-alive]
834 questions
0
votes
1 answer
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…
John
- 1,952
- 2
- 20
- 33
0
votes
1 answer
Persisting Authentication Across keep-alive Connection
Currently on my website when a user is logged in, for every webpage request you have to go to the database and check their cookie to confirm who they are, doing this across keep-alive connections is a waste because that connection was already…
James T
- 3,141
- 8
- 39
- 67
0
votes
1 answer
Keep connection between activities using DefaultHttpClient
I'm developing an app that sends requests to SAP, I’ve been wrestling to keep the connection alive while I’m in the app.
I got three activities: main, connection and list.
When I start the app goes to main, after I tap on connection to establish a…
Samper
- 23
- 1
- 4
0
votes
1 answer
Use or not Keep-alive in soap ESB request
What is the best approach to HTTP SOAP request from the ESB system to WebService, is use or not keep-alive?
Sergio Pantano
- 63
- 6
0
votes
1 answer
jQuery keep-alive with actions
I'm trying to write a jQuery script which checks to see if the user has clicked, scrolled, or hit a key within the last minute. If so, it should show an alert at the next interval (1-minute). If not, it will still show an alert every 1-minute…
WhiskeyMike
- 43
- 1
- 8
0
votes
1 answer
java socket server keep alive implementation
i've tried to build a socket server in php, but found out that because of the lack of multithreading capability in php, if the server is loaded with connection (lets say even a small amount of 300 connection), the server will be very slow.
i've…
Asaf Nevo
- 9,962
- 20
- 69
- 144
0
votes
1 answer
POST request and nginx
I'm trying to send a lot of post-requests to the localhost:80 (nginx-server).
The headers I'm sending are:
POST /LINK HTTP/1.1
User-Agent: User agent
Host: localhost
Accept: */*
Connection: Keep-Alive
Content-Type:…
Max Frai
- 52,556
- 73
- 182
- 293
-1
votes
1 answer
MVC2 renders previous value while chaining item in for loop
I have list within a model and i bind it through the loop to the Text Box. If I change the number of items in the list, it renders the previous value. Following is the code
<% for (int j = 0; j <…
mamun
- 51
- 1
- 5
-1
votes
1 answer
Question about the TCP idle timeout to Google Cloud HTTP(S) Load Balancer
I found that the TCP idle timeout to Google Load Balancer is 600 seconds and I would like to try and confirm this thing.
I used the following command to do the test and expect to get the result about 600 seconds after waiting for the connection…
Steven
- 1
-1
votes
1 answer
Is there a size limit of write() for a socket fd?
I am writing a little web server which involves epoll and multithread. For small and short http/1.1 requests and responses, it works as expected. But when working with large size file downloads, it is always interrupted by the timer I devised. I…
Grassroot72
- 3
- 4
-1
votes
1 answer
How to keep alive tcp socket in tcl
I have an issue,there is a piece of code which is in tcl opens a client socket in Linux. Because of my tests the socket is connection timed out after 2 hours. I'm looking for commands in tcl to keep alive the opened socket. So far I have got…
-1
votes
1 answer
Keep-alive: dead peers detection
I run client and socket server written in Go (1.12) on macOS localhost.
Server sets SetKeepAlive and SetKeepAlivePeriod on net.TCPConn.
Client sends a packet and then closes connection (FIN) or client abruptly terminated.
Tcpdump shows that…
surlac
- 2,893
- 2
- 20
- 28
-1
votes
1 answer
Java new socket connection vs keep-alive
I am building TCP/TLS server for IoT network. I am using Java NIO with Reactor pattern to achieve non-blocking always ready to serve server. Some of the server actions can take up to several seconds so I opted to use NIO with worker threads. What is…
WebScript
- 57
- 5
-1
votes
1 answer
Is TCP output queue blocking keep alive?
I have the following situation:
A TCP connection is established. The client (with linux running) has keep-alive activated and it works as required.
The problem is now: When I unplug the ethernet cable on the client side between a request from the…
Frogtime
- 1
- 2
-1
votes
1 answer
how to handle KEEPALIVE events?
I have a client-server app, and I set the keep alivce socket option on the server side. I understand to concept of the keep alive but how should I Handle the keep alive event, whether the keep alive mechanism recongnized a problem on the other end,…
LAvR
- 71
- 7