Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 382cb488 authored by Mikhail Naganov's avatar Mikhail Naganov
Browse files

Protect MIDI framework against client blocks in MidiReceiver.onSend

Make the server-side socket non-blocking when creating MidiOutputPort
for clients. Thus if a client ceases to read from its side of the
socket pair, the server will just fail to write instead of blocking.

One drawback is that the MidiOutputPort on the client can't indicate
that it has become dysfunctional, but it's not possible without
changing the API.

Bug: 29413812
Change-Id: I9dfcbdd214a815cea8fd1365324fd78ca459268a
parent 776f9dbb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment