|
@@ -267,12 +267,10 @@ static void core_tcpinfo(rpc_t* rpc, void* c)
|
|
if (!tcp_disable){
|
|
if (!tcp_disable){
|
|
tcp_get_info(&ti);
|
|
tcp_get_info(&ti);
|
|
rpc->add(c, "{", &handle);
|
|
rpc->add(c, "{", &handle);
|
|
- rpc->struct_add(handle, "ddddd",
|
|
|
|
|
|
+ rpc->struct_add(handle, "ddd",
|
|
"readers", ti.tcp_readers,
|
|
"readers", ti.tcp_readers,
|
|
"max_connections", ti.tcp_max_connections,
|
|
"max_connections", ti.tcp_max_connections,
|
|
- "opened_connections", ti.tcp_connections_no,
|
|
|
|
- "inactive_connections", ti.tcp_inactive_connections,
|
|
|
|
- "total_requests", ti.tcp_total_requests
|
|
|
|
|
|
+ "opened_connections", ti.tcp_connections_no
|
|
);
|
|
);
|
|
}else{
|
|
}else{
|
|
rpc->fault(c, 500, "tcp support disabled");
|
|
rpc->fault(c, 500, "tcp support disabled");
|