dansimpson / amqp-js

A push enabled AMQP Client for Javascript
120 stars 10 forks source link

Error 2030 at flash.net::Socket/readBytes() #1

Closed rskvazh closed 14 years ago

rskvazh commented 14 years ago

RabbitMQ server v. 1.7.0 This error was encountered when receiveing big messages: Error: Error #2030: End of file was encountered. at flash.net::Socket/readBytes() at org.ds.amqp.connection::Stream/readPayload()[D:\Code\AMQPFlash08\src\org\ds\amqp\connection\Stream.as:47] at org.ds.amqp.connection::Stream/readFrame()[D:\Code\AMQPFlash08\src\org\ds\amqp\connection\Stream.as:36] at org.ds.amqp.connection::Connection/onDataReceived()[D:\Code\AMQPFlash08\src\org\ds\amqp\connection\Connection.as:182]

rskvazh commented 14 years ago

This is my trace: -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

f.type = 1 f.channel = 1 payload.length = 52 bytesAvailable = 3745 f.content.length = 52 f.valid = true -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

f.type = 2 f.channel = 1 payload.length = 16 bytesAvailable = 3685 f.content.length = 16 f.valid = true -#-#-#-#-#-#-#-#-#-#-#-#-#-#-#-#

f.type = 3 f.channel = 1 payload.length = 5785 bytesAvailable = 3661 ERROR 2030 here

dansimpson commented 14 years ago

I will work on a fix asap.

dansimpson commented 14 years ago

I patched the Stream class to build the frame over time and no longer expect all the data to be included in a single event (It was a silly thought)