Skip site navigation (1) Skip section navigation (2)

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

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 (view raw or flat)
Thread:
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)

Responses

pgsql-committers by date

Next:From: Thom BrownDate: 2010-02-16 19:32:11
Subject: Re: pgsql: Add emulation of non-blocking sockets to the win32 socket/signal
Previous:From: Michael MeskesDate: 2010-02-16 18:41:23
Subject: pgsql: Do not check nan values for infinity.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group