i've spotted a following problem using DBD::Pg under win32. winsock

Bruce Momjian <bruce@momjian.us>

Commit: 8c79f3c4a30177e8c160fdd158813d4d8318cf5a
Author: Bruce Momjian <bruce@momjian.us>
Date: 2001-07-20T17:45:06Z
Releases: 7.2.1
i've spotted a following problem using DBD::Pg under win32. winsock
functions do not set errno, so some normal conditions are treated as
fatal errors. e.g. fetching large tuples fails, as at some point recv()
returns EWOULDBLOCK. here's a patch, which replaces errno with
WSAGetLastError(). i've tried to to affect non-win32 code.

Dmitry Yurtaev

Files