Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cf-dev] transfer of large files

Wow 130MB is a lot for CoAP, I wonder if it was ever tested..

It's failing 100% of time? Can you provide detailed debug logs or a JUnit test so we can try to reproduce it?
Julien

On Wed Dec 10 2014 at 11:49:58 Helge Krieg <Helge.Krieg@xxxxxxxxx> wrote:

Hello to everyone,

 

Could someone please give me a hint on how to solve this problem?

 

I am using the HelloWorldServer (from the cf-helloworld-server project within the Californium Java Eclipse project) to send a response to a client via „exchange.respond(theResponse);“ or exchange.respond(ResponseCode.CONTENT , theResponse);”

 

Server and client run on the same machine (simply run from within eclipse).

 

The payload of “theResponse” varies:

1)      A string „Hello world“ à works well, client receives the string without any problems

2)      A 10MB byte array from a file à works well, client receives the 10MB file without any problems

3)      A 130MB byte array from a file à an error occurs, I get the following output:

server:

Dez 08, 2014 1:44:50 PM org.eclipse.californium.core.network.Matcher receiveRequest

INFORMATION: Message is a duplicate: CON-GET    MID=30101, Token=de29246d, OptionSet={"Uri-Path":"fileResource3", "Block2":1048581}, ""

client:

Dez 08, 2014 1:44:50 PM org.eclipse.californium.core.network.Matcher receiveResponse

WARNUNG: Token matches but not MID: Expected 30101 but was 30100

No response received.

 

I think there seems to be something wrong with the message handling? A duplicate message that probably should be ignored causes an error here?

 

(Of course, one could surely handle file transfer in many other/better ways than using CoAP. This is not my point here.)

 

Greetings,

 

Helge

 

_______________________________________________
cf-dev mailing list
cf-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/cf-dev

Back to the top