Re: [GENERAL] PQcancel may hang in the recv call

2016-05-20 Thread Peter Juhasz
On Thu, 2016-05-19 at 15:32 -0400, Tom Lane wrote: > Peter Juhasz writes: > > > > We've found a situation where canceling a query may cause the > > client to > > hang, possibly indefinitely. This can happen if the network > > connection > > fails in

[GENERAL] PQcancel may hang in the recv call

2016-05-19 Thread Peter Juhasz
Hi all, this is somewhat involved so please bear with me. We've found a situation where canceling a query may cause the client to hang, possibly indefinitely. This can happen if the network connection fails in a specific way. The reason for this lies in the way the PQcancel function (which event