firemeaway
firemeaway

Reputation: 68

Disabling Nagle's Algorithm under Action Script 3

I've been working with AS3 sockets, and I noticed that small packets are 'Nagled' when sent. I tried to find a way to set NoDelay for the socket, but I didn't find a clue even in the documentation. Is there another way to turn Nagle'a algorithm off in AS3 TCP sockets?

Upvotes: 1

Views: 474

Answers (1)

blue112
blue112

Reputation: 56462

You can tell Flash to send out the data through the socket using the Flush method on the socket Object.

Flushes any accumulated data in the socket's output buffer.

That said, flash does what it thinks is the better, and may doesn't want to send your data too often. Still, that shouldn't be over few milliseconds.

Upvotes: 2

Related Questions