Re: psql client does not handle WSAEWOULDBLOCK on Windows

From: Umar Hayat <postgresql(dot)wizard(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: psql client does not handle WSAEWOULDBLOCK on Windows
Date: 2024-08-05 15:17:38
Message-ID: 172287105898.1651441.16829580178609704020.pgcf@coridan.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I have not reproduce your test scenario, looking at code please see following comments:

If you check the function definition of pqsecure_raw_read() it actually do set errno like bellow

SOCK_ERRNO_SET(result_errno);
where result_errno = SOCK_ERRNO

Means anybody using those function pqsecure_raw_read/write, does not need to take care of portable ERRNO.

Regards
Umar Hayat

The new status of this patch is: Waiting on Author

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2024-08-05 15:18:52 Re: WIP: parallel GiST index builds
Previous Message Tomas Vondra 2024-08-05 15:05:04 Re: Amcheck verification of GiST and GIN