Skip to content

half close on AF_UNIX #546

Closed
Closed

Description

@therealkenc

Hit this in some chrome source. Test case below. Probably a known issue but I couldn't find a bug entry. Posted in case you are doing work on unix sockets for #514 anyway.

#include <sys/socket.h>

main()
{
  int fds[2];
  socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds);
  int socket_ = fds[0];
  shutdown(socket_, SHUT_RD);  // returns EINVAL in WSL 14366
}

Activity

  1. benhillis commented on Jun 17, 2016

    @benhillis
    Member

    I took a look at the code and currently shutdown is only implemented for unix stream sockets (not sequence packets).

  2. russalex commented on Aug 31, 2016

    @russalex
    Contributor

    Looks much better on 14915.

  3. therealkenc commented on Dec 27, 2017

    @therealkenc
    Author

    This was duped up to #758.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions