Ignore EAGAIN when sending
This means that the buffer is probably full. Treat the packet like it
was dropped (it was).
Change-Id: I7cd881cc1aa6bfb04d7cb7b5c9450f316ef53999
diff --git a/aos/network/sctp_server.h b/aos/network/sctp_server.h
index 25d81fc..8fa3d15 100644
--- a/aos/network/sctp_server.h
+++ b/aos/network/sctp_server.h
@@ -31,8 +31,9 @@
// Receives the next packet from the remote.
aos::unique_c_ptr<Message> Read();
- // Sends a block of data to a client on a stream with a TTL.
- void Send(std::string_view data, sctp_assoc_t snd_assoc_id, int stream,
+ // Sends a block of data to a client on a stream with a TTL. Returns true on
+ // success.
+ bool Send(std::string_view data, sctp_assoc_t snd_assoc_id, int stream,
int timetolive);
int fd() { return fd_; }