Skip to content

[FYI] unix-echo-server example does not work like you've intended #6

@zeliard

Description

@zeliard

https://github.com/coolaj86/libev-examples/blob/master/src/unix-echo-server.c#L64-L67

In this case, send() call does not always guarantee to send "n" bytes because cliend->fd is non-blocking mode.
So keeping the buffer (str[]) is needed until all buffer contents are flushed out.

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