pgsql: Add emulation of non-blocking sockets to the win32 socket/signal

Lists: pgsql-committers
From: mha(at)postgresql(dot)org (Magnus Hagander)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add emulation of non-blocking sockets to the win32 socket/signal
Date: 2010-02-16 19:26:02
Message-ID: 20100216192602.EED537541C5@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

Log Message:
-----------
Add emulation of non-blocking sockets to the win32 socket/signal layer,
and use this in pq_getbyte_if_available.

It's only a limited implementation which swithes the whole emulation layer
no non-blocking mode, but that's enough as long as non-blocking is only
used during a short period of time, and only one socket is accessed during
this time.

Modified Files:
--------------
pgsql/src/backend/libpq:
pqcomm.c (r1.202 -> r1.203)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/libpq/pqcomm.c?r1=1.202&r2=1.203)
pgsql/src/backend/port/win32:
socket.c (r1.23 -> r1.24)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/win32/socket.c?r1=1.23&r2=1.24)
pgsql/src/include/port:
win32.h (r1.92 -> r1.93)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/port/win32.h?r1=1.92&r2=1.93)


From: Thom Brown <thombrown(at)gmail(dot)com>
To: Magnus Hagander <mha(at)postgresql(dot)org>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Add emulation of non-blocking sockets to the win32 socket/signal
Date: 2010-02-16 19:32:11
Message-ID: bddc86151002161132q2efbd1f1k6ee02a72ae2b5e4e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

On 16 February 2010 19:26, Magnus Hagander <mha(at)postgresql(dot)org> wrote:
> Log Message:
> -----------
> Add emulation of non-blocking sockets to the win32 socket/signal layer,
> and use this in pq_getbyte_if_available.
>
> It's only a limited implementation which swithes the whole emulation layer
> no non-blocking mode, but that's enough as long as non-blocking is only
> used during a short period of time, and only one socket is accessed during
> this time.
>
> Modified Files:
> --------------
>    pgsql/src/backend/libpq:
>        pqcomm.c (r1.202 -> r1.203)
>        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/libpq/pqcomm.c?r1=1.202&r2=1.203)
>    pgsql/src/backend/port/win32:
>        socket.c (r1.23 -> r1.24)
>        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/win32/socket.c?r1=1.23&r2=1.24)

The pedant returns: s/thta/that/

>    pgsql/src/include/port:
>        win32.h (r1.92 -> r1.93)
>        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/port/win32.h?r1=1.92&r2=1.93)
>
> --

Thom


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Thom Brown <thombrown(at)gmail(dot)com>
Cc: pgsql-committers <pgsql-committers(at)postgresql(dot)org>
Subject: Re: pgsql: Add emulation of non-blocking sockets to the win32 socket/signal
Date: 2010-02-17 05:53:22
Message-ID: 9837222c1002162153t2a771391ide162c650e4e63da@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-committers

On Tue, Feb 16, 2010 at 20:32, Thom Brown <thombrown(at)gmail(dot)com> wrote:
> On 16 February 2010 19:26, Magnus Hagander <mha(at)postgresql(dot)org> wrote:
>> Log Message:
>> -----------
>> Add emulation of non-blocking sockets to the win32 socket/signal layer,
>> and use this in pq_getbyte_if_available.
>>
>> It's only a limited implementation which swithes the whole emulation layer
>> no non-blocking mode, but that's enough as long as non-blocking is only
>> used during a short period of time, and only one socket is accessed during
>> this time.
>>
>> Modified Files:
>> --------------
>>    pgsql/src/backend/libpq:
>>        pqcomm.c (r1.202 -> r1.203)
>>        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/libpq/pqcomm.c?r1=1.202&r2=1.203)
>>    pgsql/src/backend/port/win32:
>>        socket.c (r1.23 -> r1.24)
>>        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/win32/socket.c?r1=1.23&r2=1.24)
>
> The pedant returns: s/thta/that/

*sigh*. Thanks.

Can I get you to subscribe to my git branches and spellcheck
everything for me? ;)

Or more to the point, does anybody know a tool that will automatically
spellcheck your *comments* (and possibly also string contents),
without checking the actual code (and throwing errors on every line
bceause of C syntax)? Preferably able to deal with actual patch
output...

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/