Project

General

Profile

Bug #2010

ipa stream support is not using buffered read

Added by laforge 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
04/14/2017
Due date:
% Done:

0%

Spec Reference:

Description

The IPA support in libosmo-netif seems to assume that one always receives an entire IPA packet (3-byte header + payload) during one read from a relaetd socket. This is of course known to be a wrong assumption, as we are reading from a stream without packet boundaries, and we're reading in non-blocking mode.

Other users of the (lower-lavel) IPA utility functions provided by libosmocore (such as osmo-bsc) are using ipa_msg_recv_buffered() to deal with this problem.

Would be worth implementing a test case that intenionally slowly writes heavily segmented IPA messages to test our various receivers.

Also available in: Atom PDF