TCP Flow control in AS3?
Posted
by Jeremy Stanley
on Stack Overflow
See other posts from Stack Overflow
or by Jeremy Stanley
Published on 2010-01-25T20:13:24Z
Indexed on
2010/03/13
11:05 UTC
Read the original article
Hit count: 401
I am currently working on a Flash socket client for a pre-existing service/standard. The service uses TCP flow control to throttle itself and the Flash socket is reading in everything as fast as it can despite not being able to process it as fast as it's being taken in. This causes the bytesAvailable on the socket to keep increasing and the server never knows that the client has fallen behind.
In short, is there any way to limit the size of bytesAvailable for a Flash Socket object or throttle it in some other way?
Note: Rewriting the server isn't a viable option at the current time as it's a standard and the client's utility drops immensely if server-side changes are needed
© Stack Overflow or respective owner