Project

General

Profile

Bug #2010

ipa stream support is not using buffered read

Added by laforge over 1 year ago. Updated about 2 months ago.

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

0%

Estimated time:
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.

History

#1 Updated by laforge about 2 months ago

  • Assignee set to stsp

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)