Re: so, is connection.poll() supposed to block?
От | Croepha |
---|---|
Тема | Re: so, is connection.poll() supposed to block? |
Дата | |
Msg-id | CANm61jfKPrNEcZ9tjXaXEgxDYKhKtMfcWtMWR-QQUmQhc1B=Jw@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: so, is connection.poll() supposed to block? (Federico Di Gregorio <fog@dndg.it>) |
Ответы |
Re: so, is connection.poll() supposed to block?
|
Список | psycopg |
On Mon, Oct 3, 2011 at 3:18 AM, Federico Di Gregorio <fog@dndg.it> wrote:
He's probably polling a synchronous connection.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?
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 по дате отправления: