You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/01/08 06:45:43 UTC

[GitHub] [trafficserver] shukitchan edited a comment on issue #8351: Using prewarmed cache of escalate host leading to server restart

shukitchan edited a comment on issue #8351:
URL: https://github.com/apache/trafficserver/issues/8351#issuecomment-930829942


   I am planning to change this block in plugins/lua/ts_lua_util.c
   
   ```
     case TS_EVENT_HTTP_SEND_REQUEST_HDR:
   
       lua_getglobal(L, TS_LUA_FUNCTION_SEND_REQUEST);
   
       if (lua_type(L, -1) == LUA_TFUNCTION) {
         ret = lua_resume(L, 0);
       }
   
       break;
   ```
   
   to 
   
   ```
   
     case TS_EVENT_HTTP_SEND_REQUEST_HDR:
   
       lua_getglobal(L, TS_LUA_FUNCTION_SEND_REQUEST);
   
       if (lua_type(L, -1) == LUA_TFUNCTION) {
         ret = lua_resume(L, 0);
       }
   
       break;
   
       if (http_ctx->server_request_hdrp != NULL) {
         TSHandleMLocRelease(http_ctx->server_request_bufp, TS_NULL_MLOC, http_ctx->server_request_hdrp);
         http_ctx->server_request_bufp = NULL;
         http_ctx->server_request_hdrp = NULL;
       }
   
   ```
   
   It will be great if you want to try it out. I do hope to have my setup much later on to try that. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org