This page shows how to establish a persistent connection to a server using the Connection and Keep-Alive headers. The Connection: keep-alive request header indicates that the client requires a persistent connection. Keep-Alive: timeout = 5, max = 100 sets the timeout value. The Curl/Bash code was automatically generated for the Keep Alive Connection example.
The Connection header controls whether the current connection remains open after the transaction.
Persistent connections allow sending multiple requests without opening a new connection for every single transaction.
The connections are persistent by default for HTTP/1.1 clients.
For HTTP/1.0 connections, you need to pass the "Connection: keep-alive" request header to explicitly indicate that you want a persistent connection.
What are TCP timeouts?
TCP stands for Transmission Control Protocol. The TCP keepalive timeout specifies the interval during which a TCP connection checks to see if a Fiber Channel over IP (FCIP) connection is up. TCP keepalive is a feature that makes the TCP stack send a probe to the other side when there is no traffic to make sure it is still there and alive.
Generate code snippets for Curl/Bash and other programming languages