Skip to content

Commit c5c206f

Browse files
committed
add nbusy
1 parent f0a8bfc commit c5c206f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ngx_http_lua_req_body.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,16 @@ ngx_http_lua_ffi_bytes_sent(ngx_http_request_t *r)
7070
return r->connection->sent;
7171
}
7272

73+
unsigned int
74+
ngx_http_lua_ffi_con_nbusy(ngx_http_request_t *r)
75+
{
76+
return r->connection->nbusy;
77+
}
78+
7379
unsigned int
7480
ngx_http_lua_ffi_bytes_buffered(ngx_http_request_t *r)
7581
{
76-
unsigned total = 0;
82+
unsigned int total = 0;
7783
ngx_chain_t* chain = r->out;
7884
while(chain){
7985
total += ngx_buf_size(chain->buf);

0 commit comments

Comments
 (0)