Open GoogleCodeExporter opened 9 years ago
If doing so, it must be ensured that the whole socket buffer is read, even
without a
new Event from the socket.
So, wrap the whole thing by a while loop:
private function handleReceiveSocketData( event : ProgressEvent ) : void
{
while ( __client.bytesAvailable > 0 ) {
// The first byte sent by the native side of the bridge is the total
// packet size. This value is persisted and reset to -1 when a set
// of messages have been read successfully.
if ( __totalBytes == -1 )
...
and
...
dispatchMessage( new MerapiErrorMessage( MerapiErrorMessage.DESERIALIZE_ERROR ) );
}
} /* end while */
}
Original comment by oliver.e...@gmx.de
on 21 Aug 2009 at 7:03
Original issue reported on code.google.com by
oliver.e...@gmx.de
on 19 Aug 2009 at 7:15