libosmocore/tests/gb
Stefan Sperling 797558ea17 send NS_POUT_UNBLOCK_ACK before signalling S_NS_UNBLOCK
In gprs_ns_process_msg(), we were dispatching the S_NS_UNBLOCK
signal before sending out the NS_POUT_UNBLOCK_ACK message.

Signal handlers might send messages to the other side, assuming
that NS is now unblocked. However, since such messages will arrive
before the UNBLOCK_ACK message the receiver might discard them.
This problem has been observed with our TTCN3 BSSGP_Emulation
as a peer to osmo-pcu.

This patch makes TTCN3 PCU TC_paging() test pass regardless of
whether the test or osmo-pcu is started first. Before this patch,
this test would only pass if the test was started before osmo-pcu.
A remaining problem is that the test does not yet keep passing
reliably unless osmo-pcu is restarted between test runs.

Change-Id: I3af54a14bb6bcfa167c9a9d9f67835e7f5b9f1bb
Related: OS#2890
Related: OS#2388
2018-11-19 17:30:37 +01:00
..
bssgp_fc_test.c use osmo_init_logging2() with proper talloc ctx 2018-04-06 04:37:50 +02:00
bssgp_fc_tests.err bssgp/test: Fix bssgp-fc test 2015-05-04 07:44:43 +02:00
bssgp_fc_tests.ok gprs_bssgp: bssgp_fc_in(): fix mem leak on queue overflow 2017-11-20 17:22:42 +01:00
bssgp_fc_tests.sh GPRS BSSGP test: integrate into autotest 2012-09-07 12:07:54 +02:00
gprs_bssgp_test.c use osmo_init_logging2() with proper talloc ctx 2018-04-06 04:37:50 +02:00
gprs_bssgp_test.ok gb: Add bssgp_msgb_copy function 2016-02-22 10:20:49 +01:00
gprs_ns_test.c use osmo_init_logging2() with proper talloc ctx 2018-04-06 04:37:50 +02:00
gprs_ns_test.ok send NS_POUT_UNBLOCK_ACK before signalling S_NS_UNBLOCK 2018-11-19 17:30:37 +01:00