MCPcopy Create free account
hub / github.com/apache/trafficserver / ts_lua_http_get_server_fd

Function ts_lua_http_get_server_fd

plugins/lua/ts_lua_http.cc:961–976  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959}
960
961static int
962ts_lua_http_get_server_fd(lua_State *L)
963{
964 int fd;
965 ts_lua_http_ctx *http_ctx;
966
967 GET_HTTP_CONTEXT(http_ctx, L);
968
969 if (TSHttpTxnServerFdGet(http_ctx->txnp, &fd) != TS_SUCCESS) {
970 lua_pushnil(L);
971 } else {
972 lua_pushnumber(L, fd);
973 }
974
975 return 1;
976}
977
978static int
979ts_lua_http_get_client_fd(lua_State *L)

Callers

nothing calls this directly

Calls 1

TSHttpTxnServerFdGetFunction · 0.85

Tested by

no test coverage detected