Any reason why the SCTP_SENDER_DRY_EVENT sctp socket event is not supported by gen_sctp on Linux?

Hi,

Any particular reason why the SCTP_SENDER_DRY_EVENT sctp socket event (notification) is not supported by gen_sctp on Linux?

Linux supports this event notification. See for example “/usr/include/linux/sctp.h” on a recent Linux distribution:

/*
 * 6.1.9. SCTP_SENDER_DRY_EVENT
 *
 * When the SCTP stack has no more user data to send or retransmit, this
 * notification is given to the user. Also, at the time when a user app
 * subscribes to this event, if there is no data to be sent or
 * retransmit, the stack will immediately send up this notification.
 */
struct sctp_sender_dry_event {
        __u16 sender_dry_type;
        __u16 sender_dry_flags;
        __u32 sender_dry_length;
        sctp_assoc_t sender_dry_assoc_id;
};

Thanks a lot,
Cristian

Probably due to Erlang not running exclusively on Linux.

I have found the OTP team are receptive to GitHub Issues and PR’s so my suggestion is to put together a dirty implementation that resolves your problem, get feedback and then iterate on it to get it into shape for inclusion.

Besides, even if you do not want to contribute, you can just run your own fork of OTP, many do for their deployments.

1 Like