pcp
[Top] [All Lists]

PCP Updated: __pmConnectLogger fails to connect as "localhost" for local

To: pcp@xxxxxxxxxxx
Subject: PCP Updated: __pmConnectLogger fails to connect as "localhost" for local: when access for unix: is denied
From: Dave Brolley <brolley@xxxxxxxxxx>
Date: Mon, 10 Mar 2014 11:24:44 -0400
Delivered-to: pcp@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
On the brolley/dev branch of pcpfans .....

commit 5fb01b56fef929df01a9c005a85f1843aff6cc2c
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date:   Mon Mar 10 11:02:06 2014 -0400

    Fix __pmConnectLogger() access control bug for the "local:[path]".

    When pmlc uses local:[path] is specified, __pmConnectLogger()
    should attempt connection as "unix:[path]" and, if this fails,
    it should try again as "localhost".

    This was working ok for the case when connection via unix:
    could not be established. However when the connection was established
    but terminated due to insufficient access control permissions,
    __pmConnectLogger() did not go on to try connecting as "localhost".

    Also, -ECONNREFUSED was being returned in this case instead of -EPERM.

<Prev in Thread] Current Thread [Next in Thread>
  • PCP Updated: __pmConnectLogger fails to connect as "localhost" for local: when access for unix: is denied, Dave Brolley <=