Erlang/OTP Forums

Author Message

<  Advanced Erlang/OTP  ~  gen_tcp send issue

Sergey
Posted: Sat Mar 17, 2012 12:04 pm Reply with quote
Joined: 17 Mar 2012 Posts: 1
Hi, there! Could you please help me? I've a problem related with the gen_tcp send function. I've been trying to send few tuples, about 10-15 items, which were decoded to amf objects from my erlang server to my flash client.

Code:
case get_tcp:send(Socket, Msg) of
    ok -> io:format("sent~n");
    {erorr, Err} -> io:format("~w~n", [Err])
end


No errors but the flash client doesn't recieve whole data just about 8-11 items. The socket options are [binary, {active, true}, {reuseaddr, true}]. I've checked my network where I use the client - sent packets were fragmented into two fragments, big and small ones. The big one is the first fragment of packet and small one is the next. Amount of the bigs is the same as amount of sent messages, but the smalls are much less and about number of recieved messages by the flash client.

It only reproduces if I send data fast, if I do it slowly it seems ok. Does anyone know why it happens? It will be very helpful.
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum