Actions
Bug #2689
closedosmo-pcu exits if BTS not yet available after connecting successfully to the unix socket
Start date:
11/28/2017
Due date:
% Done:
0%
Spec Reference:
Description
If the unix socket is not yet available, osmo-pcu delays the operation and tries again later without dying:
20171128192520877 DL1IF <0001> /home/pespin/dev/sysmocom/git/osmo-pcu/src/osmobts_sock.cpp:229 Opening OsmoPCU L1 inter face to OsmoBTS 20171128192520878 DL1IF <0001> /home/pespin/dev/sysmocom/git/osmo-pcu/src/osmobts_sock.cpp:266 Failed to connect to the osmo-bts PCU socket, delaying... '/tmp/pcu_bts' 20171128192525883 DL1IF <0001> /home/pespin/dev/sysmocom/git/osmo-pcu/src/osmobts_sock.cpp:229 Opening OsmoPCU L1 inter face to OsmoBTS 20171128192525883 DL1IF <0001> /home/pespin/dev/sysmocom/git/osmo-pcu/src/osmobts_sock.cpp:266 Failed to connect to the osmo-bts PCU socket, delaying... '/tmp/pcu_bts'
However, once it successfully connects, it tries to get information from BTS. If BTS says it is not avaialable, osmo.pcu exits the process instead of waiting for new instructions or change of status from BTS, or try re-connecting to the unix socket and trying again with a delay:
20171128192519079 DL1IF <0001> /home/pespin/dev/sysmocom/git/osmo-pcu/src/osmobts_sock.cpp:229 Opening OsmoPCU L1 inter face to OsmoBTS 20171128192519079 DL1IF <0001> /home/pespin/dev/sysmocom/git/osmo-pcu/src/osmobts_sock.cpp:288 osmo-bts PCU socket /tmp /pcu_bts has been connected 20171128192519079 DL1IF <0001> /home/pespin/dev/sysmocom/git/osmo-pcu/src/osmobts_sock.cpp:292 Sending version 0.4.0.7- a5eb to BTS. 20171128192519079 DL1IF <0001> /home/pespin/dev/sysmocom/git/osmo-pcu/src/pcu_l1_if.cpp:107 Sending 0.4.0.7-a5eb TXT as PCU_VERSION to BTS 20171128192519079 DL1IF <0001> /home/pespin/dev/sysmocom/git/osmo-pcu/src/pcu_l1_if.cpp:413 Info indication received: 20171128192519079 DL1IF <0001> /home/pespin/dev/sysmocom/git/osmo-pcu/src/pcu_l1_if.cpp:416 BTS not available [Inferior 1 (process 16689) exited normally]
Actions