MCPcopy Create free account
hub / github.com/apache/cloudberry / http_should_keep_alive

Function http_should_keep_alive

gpcontrib/gpcloud/lib/http_parser.cpp:2150–2166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2148
2149
2150int
2151http_should_keep_alive (const http_parser *parser)
2152{
2153 if (parser->http_major > 0 && parser->http_minor > 0) {
2154 /* HTTP/1.1 */
2155 if (parser->flags & F_CONNECTION_CLOSE) {
2156 return 0;
2157 }
2158 } else {
2159 /* HTTP/1.0 or earlier */
2160 if (!(parser->flags & F_CONNECTION_KEEP_ALIVE)) {
2161 return 0;
2162 }
2163 }
2164
2165 return !http_message_needs_eof(parser);
2166}
2167
2168
2169const char *

Callers

nothing calls this directly

Calls 1

http_message_needs_eofFunction · 0.85

Tested by

no test coverage detected