diff options
author | arehbein <arehbein@sysmocom.de> | 2023-10-19 18:00:04 +0200 |
---|---|---|
committer | daniel <dwillmann@sysmocom.de> | 2023-10-20 10:00:32 +0000 |
commit | 2e2a0a1561207361b09f70a68c5500e5ea1341a4 (patch) | |
tree | daba534ceebf28ab5f05be951d4d5ccdf4693ec4 /src | |
parent | 714843a455a00da74377f4636b73aa8b5a308a27 (diff) |
osmo_io_poll: Handle -EAGAIN in case of OSMO_FD_WRITE
Related: OS#6213
Change-Id: I59c86370d13f2bb33c289d1b177df895726975cb
Diffstat (limited to 'src')
-rw-r--r-- | src/core/osmo_io_poll.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/osmo_io_poll.c b/src/core/osmo_io_poll.c index d207047f..a9aaea4e 100644 --- a/src/core/osmo_io_poll.c +++ b/src/core/osmo_io_poll.c @@ -86,6 +86,10 @@ static void iofd_poll_ofd_cb_recvmsg_sendmsg(struct osmo_fd *ofd, unsigned int w 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: |