From c7f52c4c84d6a8898048738c4db9266289c40b45 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 12 Nov 2016 21:25:21 +0100 Subject: wqueue: Reject messges if queue is considered full The write queue was always meant to not queue more than the max_length messages but the implementation never rejected a message. Begin to log and enforce the queue size limit, add a testcase to verify the code and initialize except_cb as part of a fix for that new test case. Real applications might now run into the queue limit and drop messages where they just queued them before. It is unfortunate but I still think it is good to implement the routine as it was intended. We need to review osmo_wqueue_enqueue once more to see that no msgb is leaked. Change-Id: I1e6aef30f3e73d4bcf2967bc49f0783aa65395ae --- .gitignore | 1 + 1 file changed, 1 insertion(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 90c8c85c..50209b05 100644 --- a/.gitignore +++ b/.gitignore @@ -95,6 +95,7 @@ tests/sim/sim_test tests/gsup/gsup_test tests/tlv/tlv_test tests/fsm/fsm_test +tests/write_queue/wqueue_test utils/osmo-arfcn utils/osmo-auc-gen -- cgit v1.2.3