Questions tagged [keep-alive]
A feature of HTTP where the same connection is used for multiple requests, speeding up downloading of web pages with multiple resources.
873
questions
0
votes
0
answers
24
views
Mobaxterm issue : "Network error: Connection timed out" when connecting via ssh
I want to connect to a server, so I try to open a new ssh session on mobaxterm, but after few seconds the connection fails and I get this error: "Network error: Connection timed out"
I have ...
0
votes
0
answers
11
views
Using netty connection pools with keep alive and multiple different target URLs how does the correct connection get chosen?
With netty webclient set up use keep-alives and a connection pool if I make a request to ServerA then a connection will created and kept alive, then I make a request to ServerB presumably a new ...
-3
votes
0
answers
37
views
hello! - by using replit.it, i made a discord bot with python. although just today, i've noticed that it keeps saying things in the command preview
it randomly happened today when I checked my repl.it code, I had a minor problem where my command preview constantly shows random lines of text every five minutes:
0.00.0.1 - - [22/Jun/2022 09:50:04] &...
0
votes
0
answers
12
views
.net core best practice for keep session alive
i have a load balanced server with sticky bit timout set to 3 minutes, while session is keep for 15 minutes.
i cannot change that so i'am setting a keep alive request in my layout file
found that code ...
1
vote
0
answers
14
views
Http requests being dropped in Chrome Extension
Summary:
I've built a chrome extension that reaches out to external API to fetch some data. Sometimes that data returns quickly, sometimes it takes 4 seconds or so. I'm often doing about 5-10 in rapid ...
0
votes
0
answers
25
views
How to terminate persistent connection in axios?
I'm working on the project which needs to establish a persistent connection with web-server. I'm planning to use axios like this.
const axiosInstance = axios.create({
baseURL: 'https://httpbin.org/...
1
vote
0
answers
47
views
How to implement the keep-alive function on next.js
I want to wirte a muilt tabs with the pages cache,so that jump to anothe page,the last page's data
can retain.In vue ,there's keep-alive function,but react.So I found a third party library to resolve ...
1
vote
1
answer
77
views
keep-alive not works in vue.js
My vuejs version is 3.
I implement both of these ways to use keep-alive in my app.
1
<template>
<div id="nav" classs="container is-max-desktop"></div>
<keep-...
0
votes
0
answers
18
views
PHP CURL about curl_multi_getcontent overflow
I am use curl connect and use keep alive.When I use curl_multi_getcontent to get data that will display history data in return.
Is it will have problem for example variable overflow?
I have searched ...
0
votes
0
answers
23
views
How to cache same component in different instance via vue3
The vue3's "KeepAlive" component can cache component by "component name".
Is there any other way to cache component by "key".
Suppose there are 2 pages sharing the same ...
0
votes
0
answers
37
views
KeepAlived : killall5[5364]: only one argument, a signal number, allowed
Configured keepalived to monitor services on my other machine and to automatically failover to a standby if problems occur
Here is my config file
vrrp_script chk_haproxy {
script "/usr/bin/...
0
votes
0
answers
12
views
Keep more then one openned HTTP sessions
I wonder if it is possible by using python to establish more than one opened HTTP keep-alive session by one user simultaneously.
For example, could I use multiprocessing to create more sessions ...
0
votes
0
answers
12
views
How to handle keep alive received probe on python server
In a python-written server with TCP socket defined as follows:
def create_tcp_socket(bind_address):
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.setsockopt(socket.SOL_SOCKET, ...
0
votes
1
answer
72
views
net/http: Why not close the conn directly instead of put the conn into a new list? [closed]
I read golang's source code recently, and find a place that doesn't make sence.
if t.MaxIdleConns != 0 && t.idleLRU.len() > t.MaxIdleConns {
oldest := t.idleLRU.removeOldest()
...
0
votes
0
answers
180
views
How can I detect incoming keep-alive pings on a C# gRPC server?
According to the Performance Best Practices from the official gRPC website keep-alive pings should be used to keep HTTP/2 connections alive.
These best practices for gRPC are also talked about in the ...
0
votes
0
answers
166
views
Nginx doesn't drop upstream connection when client disconnected
In my app client connect to backend over nginx with WebSockets connection.
My nginx has next config:
server {
listen 80;
listen 443 ssl;
...
1
vote
0
answers
44
views
RSocket-net - KEEPALIVE requests from the server are not being handled in the RSocket-net Client
I am trying to use the RSocket-net implementation of RSockets and have run across a problem.
The RSocket server can be setup to send KEEPALIVE frames at a rate specified in the RSocketOptions ...
0
votes
0
answers
65
views
why nodejs cannot close tcp connection?
this is my client.js code
const http = require('http')
const axios = require('axios')
http.globalAgent.keepAlive = true
http.globalAgent.maxFreeSockets = 700
const test = async () => {
const ...
0
votes
1
answer
100
views
I am not able to fetch/retrieve all the results from keepa API
I have integrated keepa api with google Gsuite. I put the perpage limit 10,000 in payload and tried to iterate the page. On page 0 I got the 10,000 records but when I tried to iterate the page to 1 ...
0
votes
0
answers
71
views
How to set timeout in Apache 2.2?
I need to set timeout when sending requests from apache to appserver.
I tried to set timeout in httpd.conf file to 20 seconds in different ways:
ProxyPass /a http://some_ip/ timeout=20 KeepAlive=On
...
0
votes
0
answers
119
views
Solution to stay logged in using javascript/puppeteer
There are some intranet sites that log me out more often than I like and I tried using Python, PowerShell and Javascript. The last one worked but it was based on launching those sites in child/popup ...
1
vote
1
answer
73
views
Child-routes not cached by keep-alive
I am wrapping my router with a keep-alive like so:
<template>
<section class="app-main">
<keep-alive :include="['TopLevelRoute', 'ChildRoute']">
<...
0
votes
1
answer
704
views
Enabling 'keepAlive' functionality in Axios and NodeJS
I have read a bunch of documentation, Stack Overflow posts, and various blog posts and can't seem to get 'keepAlive' functionality to work. What am I missing here?
My server:
import express from "...
1
vote
1
answer
164
views
How to keep-alive nested QRouteTab (vuejs3 with Quasar2)
I try to create an UI with 2 nested tabs (see the screen shot), which keep alive all visited panels.
I have made a small example here: https://codesandbox.io/s/no-keep-alive-b7x2sj
However only panels ...
0
votes
1
answer
161
views
Adding Connection: keep-alive header is not returned to client in ASP.net
Short Version
I'm adding the response header:
Connection: keep-alive
but it's not in the resposne.
Long Version
I am trying to add a header to an HttpResponse in ASP.net:
public void ProcessRequest(...
0
votes
1
answer
214
views
Where does VueJS store the cached component when using keep-alive
I am looking for information on where Vue stores the cached component data when a component is wrapped in the keep-alive component. I looked at the local storage, cache storage, and session storage ...
0
votes
0
answers
32
views
keepalived notify script cannot run hadoop command
I have set up 2 servers for keepalived 1.3.5 (master and backup)
I plan to print a log whenever the server change state that is why I uses notify_master and notify_backup and call my script, assume ...
0
votes
1
answer
78
views
After i reload i want to keep the local storage values
This is my function:
function render() {
let list = document.getElementById('myNotes');
trashFolderModal = document.getElementById('allBlur');
list.innerHTML = localStorage.setItem(key, text);
...
0
votes
1
answer
48
views
How can I keep the connection between Apache and PHP alive on long running scripts?
So here's my problem. I have a PHP script that imports big CSV Files into a Database, running as a Cronjob on Apache. It worked fine but as the files get bigger I now get FastCGI Errors and the script ...
0
votes
0
answers
155
views
Update or Clear the cache of specific route in nuxt keep-alive
I am using <Nuxt keep-alive/> in layouts/default.vue to cache the request. But when I change some data I want to update the cache or Destroy the cache so that next time when we visit the page ...
0
votes
0
answers
75
views
Why doesn't writing to a xhr keep-alive connection work on nodejs v16, but works on previous versions?
I have written a very simple client and a server. The client can send a keep-alive xhr. The server keeps the xhr open and sends ping message every 15 seconds. Everything works with nodejs version <...
0
votes
1
answer
531
views
How do i convey Keep-alive metadata when the HTTP/2 protocol is used?
I have an angular web application that uses Spring boot with an embedded tomcat server in the backend. I want to keep established http connections alive longer to improve the response time of ...
0
votes
1
answer
135
views
How to keep alive Vue.Js components after routing from one page to another and back
I have two components named uploadSelfie.vue and takeSelfie.vue.
In uploadSelfie.vue component, I am allowing user to upload 2 documents, his/her ID card copy and a selfie either by choosing from ...
0
votes
0
answers
103
views
is react support keepalive base on router
i'm using react-activation for keepalive
but it seems base on file not on router(not hash route)
i want some router like /mypage/id1 and /mypage/id2 both be cached
in vue i can use to do this
im ...
0
votes
0
answers
43
views
How to force browser to send all requests using only one connection (socket)
I have an embedded product, and unfortunately due to limited resources it can handle only one SSL connection at a time. Browsers try to open more, which I have to refuse.
Is there any way to force ...
0
votes
1
answer
468
views
Apache actively close tcp connections when keep-alive is set by the client
I'm trying to do Apache performance benchmarking for my course project. But I meet a strange problem. When I use a single client to establish multiple TCP connections (e.g. 100) to an Apache server ...
0
votes
0
answers
37
views
HTTP 1.1 GET and SSE race condition
I have a custom HTTP Server, and I'm having the following problem:
Client opens a connection and sends a GET request.
The server sends the response and keeps the connection opened (keep-alive).
The ...
0
votes
1
answer
140
views
C# Socket with KeepAlive enabled does not send when all connections are broken
I have an application that opens a read-only TCP stream socket. I have set up KeepAlive to ensure that every second a message is sent to check if the connection is still ok. Wireshark shows that the ...
0
votes
1
answer
47
views
Keeping an Android app "awake" long enough to save data
I'm not 100% sure this is necessary on Android.
For iOS, if your app goes into the background, and you're saving a large chunk of data, the app can sleep before the data is fully saved. To get around ...
0
votes
0
answers
29
views
whether an html link can opened in an http keep-alive connection?
I'm working an netty + Http/websocket keep-alive server using Java 。
in this new arthitect ,I need to resolve a problem : in my scenarios , clients can ping server successfully ,but server could not ...
0
votes
1
answer
239
views
Vue3, vue-router, how to keep unused view mounted, with audio playback (more than keep-alive)?
I want to use vue-router, but then keep a currently unused view mounted in the DOM. Something like Vue's keep-alive but with just hiding the unused view, instead of unmounting it.
The reason is, this ...
0
votes
0
answers
11
views
What the ideal maximum parallels Http connections an android app can have?
I need to setup the maximum parallels Http connections my android app can have (to my server). However I don't know what ideal number to say? 4? 6? 8? 16? etc. Is their some study about it or anything ...
0
votes
0
answers
60
views
Node.js sharing the same HTTP agent across service calls
I have a node.js backend that connects to external service via HTTP request.
I am using the node.js HTTP to manage my requests. My question is about how to properly use Node.js http Agent with the ...
0
votes
0
answers
146
views
Push pending server requests
I have implemented tus protocol for large video uploads: it divides a video to chunks and sends them assynchronously to the server. The web application is proxied through Cloudflare.
The problem is, ...
0
votes
0
answers
92
views
Can't handle HTTP keep-alive requests with Java's ServerSocket
So right now I'm trying to stream audio from a java server using the ServerSocket, I'm doing so by setting the src attribute of the audio tag to be an endpoint on my server, and that handles the ...
0
votes
1
answer
400
views
Can I change the Keep-Alive timeout for a S3 origin with Amazon CloudFront?
Is it possible to increase the Keep-Alive Timeout for a CloudFront distribution when you're not using a custom origin? I'm using S3 as the origin.
All the docs and threads I can find focus on custom ...
1
vote
0
answers
149
views
Set keep-alive powershell command
I am trying to enable the Keep-alive function on my windows server 2019 with PowerShell. It is a part of the preparation for migration to Azure. Does anybody know the PowerShell command to activate ...
0
votes
2
answers
328
views
How to set Microsoft.Azure.Devices.Client.DeviceClient KeepAliveInSeconds to a higher number than 30
I am investigating using MQTT (or AMQP) over a satellite connection. I am using MQTT over HTTPS towards an IoT Hub in Azure. Data is very expensive on satellite and I am trying to minimize the "...
0
votes
0
answers
104
views
Http streaming using Keep-alive and authenticating socket on its create
i need to connect to a server that depends on HTTP/1 Keep-alive header to establish socket connection with its clients.
flow is :
you send JWT Token, server return ok, then i should keep the socket ...
0
votes
0
answers
87
views
How to create a keep-alive API endpoint with Cowboy in Elixir?
Note: I am new to elixir and the forum, and hence my question might be missing some details. Do let me know if additional information is required from my end.
I am trying to integrate the trading view’...