Skip to content

Packet loss #1

@jwedel

Description

@jwedel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions