Re: so, is connection.poll() supposed to block? - Mailing list psycopg

From Croepha
Subject Re: so, is connection.poll() supposed to block?
Date
Msg-id CANm61jfKPrNEcZ9tjXaXEgxDYKhKtMfcWtMWR-QQUmQhc1B=Jw@mail.gmail.com
Whole thread Raw
In response to Re: so, is connection.poll() supposed to block?  (Federico Di Gregorio <fog@dndg.it>)
Responses Re: so, is connection.poll() supposed to block?  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg


On Mon, Oct 3, 2011 at 3:18 AM, Federico Di Gregorio <fog@dndg.it> wrote:
On 01/10/11 10:41, Daniele Varrazzo wrote:
> On Sat, Oct 1, 2011 at 9:18 AM, Croepha <croepha@gmail.com> wrote:
>> > It seems to be blocking, (or waiting on IO at times...) What is the point to
>> > doing a select on the connection if poll is going to block?
> Have you vented? Ok, great. Now, care to provide an example of what
> you're talking about?

He's probably polling a synchronous connection.

I am currently using a  synchronous connection.

I just wan't to verify my understanding of how psycopg2 works:

1. Can synchronous connections can block on poll?
2. Are you allowed to set client encoding in an asynchronous connection? (mine gives me an exception when I try) if not, why not?


PS:
Sorry, I just now realized that I had replied directly to Daniele, instead of posting to the list

psycopg by date:

Previous
From: Federico Di Gregorio
Date:
Subject: Re: so, is connection.poll() supposed to block?
Next
From: Daniele Varrazzo
Date:
Subject: Re: so, is connection.poll() supposed to block?