Re: [PATCH v6] GSSAPI encryption support

From: David Steele <david(at)pgmasters(dot)net>
To: Robbie Harwood <rharwood(at)redhat(dot)com>, pgsql-hackers(at)postgresql(dot)org
Cc: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Subject: Re: [PATCH v6] GSSAPI encryption support
Date: 2016-03-14 20:13:48
Message-ID: 56E71B7C.6050108@pgmasters.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 3/14/16 4:10 PM, Robbie Harwood wrote:
> David Steele <david(at)pgmasters(dot)net> writes:
>
>> Hi Robbie,
>>
>> On 3/8/16 5:44 PM, Robbie Harwood wrote:
>>> Hello friends,
>>>
>>> Here's yet another version of GSSAPI encryption support. It's also
>>> available for viewing on my github:
>>
>> The build went fine but when testing I was unable to logon at all. I'm
>> using the same methodology as in
>> http://www.postgresql.org/message-id/56BE0FF9.70302@pgmasters.net except
>> that I'm running against 51c0f63 and using the v6 patch set.
>>
>> psql simply hangs and never returns. I have attached a pcap of the
>> psql/postgres session generated with:
>>
>> tcpdump -i lo -nnvvXSs 1514 port 5432 -w gssapi.pcap
>>
>> If you would like me to capture more information please let me know
>> specifically how you would like me to capture it.
>
> Please disregard my other email. I think I've found the issue; will
> post a new version in a moment.

Strange timing since I was just testing this. Here's what I got:

$ pg/bin/psql -h localhost -U vagrant(at)PGMASTERS(dot)NET postgres
conn->inStart = 179, conn->inEnd = 179, conn->inCursor = 179
psql (9.6devel)
Type "help" for help.

postgres=>

This was after commenting out:

// appendBinaryPQExpBuffer(&conn->gwritebuf,
// conn->inBuffer + conn->inStart,
// conn->inEnd - conn->inStart);
// conn->inEnd = conn->inStart;

The good news I can log on every time now!

--
-David
david(at)pgmasters(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2016-03-14 20:16:43 Re: Background Processes and reporting
Previous Message Robbie Harwood 2016-03-14 20:10:51 Re: [PATCH v6] GSSAPI encryption support