Re: Windows: Wrong error message at connection termination - Mailing list pgsql-hackers

From Sergey Shinderuk
Subject Re: Windows: Wrong error message at connection termination
Date
Msg-id eb2c816f-ea28-796b-95b1-0dd54df54434@postgrespro.ru
Whole thread Raw
In response to Re: Windows: Wrong error message at connection termination  (Sergey Shinderuk <s.shinderuk@postgrespro.ru>)
Responses Re: Windows: Wrong error message at connection termination
List pgsql-hackers
On 14.01.2022 13:01, Sergey Shinderuk wrote:
> Unexpectedly, this changes the error message:
> 
>      postgres=# set idle_session_timeout = '1s';
>      SET
>      postgres=# select 1;
>      could not receive data from server: Software caused connection 
> abort (0x00002745/10053)

For the record, after more poking I realized that it depends on timing. 
  By injecting delays I can get any of the following from libpq:

* could not receive data from server: Software caused connection abort
* server closed the connection unexpectedly
* no connection to the server


> Should we handle ECONNABORTED similarly to ECONNRESET in pqsecure_raw_read?

So this doesn't make sense anymore.

Sorry for the noise.

-- 
Sergey Shinderuk        https://postgrespro.com/



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Why is src/test/modules/committs/t/002_standby.pl flaky?
Next
From: Andres Freund
Date:
Subject: Re: Adding CI to our tree