Skip to content

SIGPIPE (signal SIGPIPE) after some time working #9

Closed
@DraTeots

Description

@DraTeots

Having a pretty simple server, which is set up very close to the examples.

After some time of fine running, it just starts failing with SIGPIPE here:

inline int SocketStream::write(const char* ptr, size_t size) // ptr = "Connection: close\r\n"
    {
        return send(sock_, ptr, size, 0);
    }
Linux 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)

Update:
Sometimes it runs really long without it. So one can say, that sometimes it is not happening.

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