aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDeterminant <[email protected]>2019-06-28 00:25:30 -0400
committerDeterminant <[email protected]>2019-06-28 00:25:30 -0400
commitb886c6e00ab986f3f22d6e77f77fa8f559532e38 (patch)
tree241f0ee09b572e4677e98aa9ef764c198f2311f8 /test
parentd15ec0b93def57e5f3832f429a3b948e86a62887 (diff)
fix fd leakage
Diffstat (limited to 'test')
-rw-r--r--test/test_p2p_stress.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_p2p_stress.cpp b/test/test_p2p_stress.cpp
index 1eb4a0d..ca4fcda 100644
--- a/test/test_p2p_stress.cpp
+++ b/test/test_p2p_stress.cpp
@@ -148,6 +148,7 @@ void install_proto(AppContext &app, const size_t &seg_buff_size) {
for (const auto &p: app.tc)
s += salticidae::stringprintf(" %d(%d)", ntohs(p.first.port), p.second.ncompleted);
SALTICIDAE_LOG_INFO("%d completed:%s", ntohs(app.addr.port), s.c_str());
+ SALTICIDAE_LOG_INFO("%d npending: %lu", ntohs(app.addr.port), net.get_npending());
});
double t = salticidae::gen_rand_timeout(10);
tc.timer.add(t);