[PATCH/RFC 0/2] libosmo-abis ctrl related fixes

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Daniel Willmann daniel at totalueberwachung.de
Thu Sep 15 10:56:56 UTC 2011


Hello,

attached are two patches I came across while looking at the
pablo/ctrl-updates branch in OpenBSC.

The first one is just a bugfix for a resource leak and the second one
adds a possibility to register a callback that will notify you if the
connection is lost. This is needed for the control interface as we'll
need to clean up some ctrlif related things if a connection is lost.

Be aware that I haven't tested this with the ctrl-updates branch since
this doesn't compile yet. I did test that master still compiles and
osmo-bsc/nat don't segfault on start (though openbsc doesn't seem to
use ipa_server_conn at the moment).
The e1inp_ipa_{bsc,bts}_test worked as well.

Regards,

Daniel Willmann (2):
  ipa: Fix resource leak if we encounter an error in
    ipa_server_conn_read
  ipa: Add a callback to detect if the server_conn was closed

 include/osmocom/abis/ipa.h |    3 ++-
 src/input/ipa.c            |    6 +++++-
 src/ipa_proxy.c            |    2 +-
 3 files changed, 8 insertions(+), 3 deletions(-)

-- 
1.7.6.1





More information about the OpenBSC mailing list