I'm using linedancer for some embedded application. Whenever I start the application including linedancer, the first packet is missing. I checked the handle_info({tcp, Socket, Bin} function in linedancer_client_fsm. The problem is solved, if the Opts in linedancer_socket are set to
Opts = [binary, {active, false}, {reuseaddr, true},{keepalive, true},
{backlog, 128}, {packet, raw}],
as suggested by Serge Aleynikov here.
The actual problem is {active, once} that may cause packet loss if the hand-over is not done fast enough.
I'm using linedancer for some embedded application. Whenever I start the application including linedancer, the first packet is missing. I checked the handle_info({tcp, Socket, Bin} function in linedancer_client_fsm. The problem is solved, if the Opts in linedancer_socket are set to
as suggested by Serge Aleynikov here.
The actual problem is
{active, once}that may cause packet loss if the hand-over is not done fast enough.