Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 4F41F200BCC for ; Tue, 29 Nov 2016 22:54:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4E2B0160B15; Tue, 29 Nov 2016 21:54:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 96C76160AFC for ; Tue, 29 Nov 2016 22:53:59 +0100 (CET) Received: (qmail 91497 invoked by uid 500); 29 Nov 2016 21:53:58 -0000 Mailing-List: contact issues-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list issues@mesos.apache.org Received: (qmail 91473 invoked by uid 99); 29 Nov 2016 21:53:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2016 21:53:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 58F6E2C0086 for ; Tue, 29 Nov 2016 21:53:58 +0000 (UTC) Date: Tue, 29 Nov 2016 21:53:58 +0000 (UTC) From: "Benjamin Hindman (JIRA)" To: issues@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-5658) Socket::shutdown() is inconsistent with BSD sockets API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 29 Nov 2016 21:54:00 -0000 [ https://issues.apache.org/jira/browse/MESOS-5658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15706651#comment-15706651 ] Benjamin Hindman commented on MESOS-5658: ----------------------------------------- Partially completed in: {code} commit 4417a4e8917e17e70942a77bd796857978778888 Author: Benjamin Hindman Date: Sun Nov 27 12:10:14 2016 -0800 Added support for specifying how a socket should be shutdown. Review: https://reviews.apache.org/r/54113 commit b3013ffb0711ad70f91b50e90ea17674137c9c15 Author: Greg Mann Date: Tue Nov 29 12:18:14 2016 -0800 Added POSIX socket shutdown types to Windows header. This patch adds two missing BSD socket shutdown types to a Windows header which maps these POSIX constants to their Windows counterparts. Review: https://reviews.apache.org/r/53990/ {code} Still need to remove the default. > Socket::shutdown() is inconsistent with BSD sockets API > ------------------------------------------------------- > > Key: MESOS-5658 > URL: https://issues.apache.org/jira/browse/MESOS-5658 > Project: Mesos > Issue Type: Improvement > Components: libprocess > Reporter: Neil Conway > Priority: Minor > > In libprocess, the {{Socket::shutdown()}} member function is inconsistent with the {{shutdown(2)}} function from the Berkeley sockets API: the former doesn't take any parameters (and implicitly *only* shuts down the receiver-side of the socket), whereas the latter takes a parameter that controls which side(s) are shutdown. > IMO we should either make these behave the same or document why they are different. -- This message was sent by Atlassian JIRA (v6.3.4#6332)