Re: 9.5: Can't connect with PGSSLMODE=require on Windows - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: 9.5: Can't connect with PGSSLMODE=require on Windows
Date
Msg-id 20150928203706.GW295765@alvherre.pgsql
Whole thread Raw
In response to Re: 9.5: Can't connect with PGSSLMODE=require on Windows  (Asif Naeem <anaeem.it@gmail.com>)
List pgsql-hackers
Asif Naeem wrote:
> I have spent sometime to investigate the issue, it is reproduciable. In
> case of Windows, when pqsecure_raw_read() function error code
> WSAEWOULDBLOCK (EWOULDBLOCK) when no data queued to be read from the non
> blocking socket there is a need to log retry flag. Related error code can
> be retrieved via Windows WSAGetLastError() instead of errno, preprocessor
> SOCK_ERRNO handle it gracefully.

Hmm, wow.  I think you should also change my_sock_write.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Rename withCheckOptions to insertedCheckClauses
Next
From: Robert Haas
Date:
Subject: Re: Foreign join pushdown vs EvalPlanQual