daniel has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/34835?usp=email )

Change subject: osmo_io_poll: Handle -EAGAIN in case of OSMO_FD_WRITE
......................................................................

osmo_io_poll: Handle -EAGAIN in case of OSMO_FD_WRITE

Related: OS#6213
Change-Id: I59c86370d13f2bb33c289d1b177df895726975cb
---
M src/core/osmo_io_poll.c
1 file changed, 14 insertions(+), 0 deletions(-)

Approvals:
  fixeria: Looks good to me, but someone else must approve
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  daniel: Looks good to me, approved




diff --git a/src/core/osmo_io_poll.c b/src/core/osmo_io_poll.c
index d207047..a9aaea4 100644
--- a/src/core/osmo_io_poll.c
+++ b/src/core/osmo_io_poll.c
@@ -86,6 +86,10 @@
                                iofd_txqueue_enqueue_front(iofd, msghdr);
                                return;
                        }
+                       if (rc == -EAGAIN) {
+                               iofd_txqueue_enqueue_front(iofd, msghdr);
+                               return;
+                       }

                        switch (iofd->mode) {
                        case OSMO_IO_FD_MODE_READ_WRITE:

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/34835?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I59c86370d13f2bb33c289d1b177df895726975cb
Gerrit-Change-Number: 34835
Gerrit-PatchSet: 2
Gerrit-Owner: arehbein <arehb...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillm...@sysmocom.de>
Gerrit-Reviewer: fixeria <vyanits...@sysmocom.de>
Gerrit-Reviewer: pespin <pes...@sysmocom.de>
Gerrit-MessageType: merged

Reply via email to