Project

General

Profile

Actions

Bug #2010

closed

ipa stream support is not using buffered read

Added by laforge about 7 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
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.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)