[erlang-questions] gen_sctp doesn't stream
Tue Mar 6 11:57:20 CET 2012
On Mon, Mar 05, 2012 at 10:11:32AM +1100, Anthony Shipman wrote:
> 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?
Yes, unfortunately. So far that has not been an issue, but since SCTP in
this respect behaves more like TCP it would be desirable to have the same
behaviour. I will put it on our ToDo list...
> Anthony Shipman Mamas don't let your babies
> grow up to be outsourced.
> erlang-questions mailing list
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-questions