Permalink
Browse files

now we call ngx_http_lua_socket_finalize in cosocket:setkeepalive() t…

…o help buffer reuse.
  • Loading branch information...
1 parent d00976d commit dbe0dc4e4f533291c9866d0ae4d53e3beefe6777 @agentzh agentzh committed May 12, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/ngx_http_lua_socket.c
@@ -3045,6 +3045,10 @@ static int ngx_http_lua_socket_tcp_setkeepalive(lua_State *L)
}
}
+#if 1
+ ngx_http_lua_socket_finalize(r, u);
+#endif
+
lua_pushinteger(L, 1);
return 1;
}

0 comments on commit dbe0dc4

Please sign in to comment.