<div dir="ltr">On 21 August 2015 at 13:15, Oscar Muñoz Garrigós <span dir="ltr"><<a href="mailto:osmuogar@gmail.com" target="_blank">osmuogar@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi,<br></div>I am using a server to send some packets. The problem is actually the packets are truncated and my client does not receive the full packet. I created two sockets but only the socket wich receives the packet returns it to the client, if i change it the packet is lost. Could you give me some advice?<br><br></div><div><snip></div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>write_to_db(WSocket, WAdress, WMPort, WFrom, WTo, WText)-><br>     ...<br>     ...<br>    Message = analizar_resultados(Respuesta),<br><br>    {ok, SSocket} = gen_udp:open(0,[inet]),<br>    %%ok = gen_udp:send(SSocket, WAdress, WMPort, Message), <-------- This does not works cause the packet is lost<br></div></div></blockquote><div><br></div><div>Do you have a stateful firewall between the client and server? Maybe the firewall is dropping packets because you are originating them from a random port?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>    ok = gen_udp:send(WSocket, WAdress, WMPort, Message), <-------- This works but the packet is truncated<br></div></div></blockquote><div><br></div><div>Is the other end written in Erlang as well or a different language? Could it be buggy? Can you see your complete packet in a packet capture?</div><div><br></div><div>Chandru</div><div><br></div></div></div></div>