[erlang-questions] gen_sctp doesn't stream

Anthony Shipman als@REDACTED
Mon Mar 5 00:11:32 CET 2012


gen_tcp does let me stream data. The driver will put data into a queue and 
block my process when the queue reaches a high water mark. Then it will allow 
the process to continue when the low water mark is reached. I can push data 
into a socket continuously as fast as it will go.

The gen_sctp driver is built on the UDP driver. There is no queue. If I send 
too many packets I just get an eagain error code. It seems that the best I can 
do is to keep polling until I can send the next message.  Am I right?

-- 
Anthony Shipman                    Mamas don't let your babies 
als@REDACTED                   grow up to be outsourced.



More information about the erlang-questions mailing list