libpq win32-native errno fix

Started by Dmitry Yurtaevabout 25 years ago1 messagespatches
Jump to latest
#1Dmitry Yurtaev
dmitry@channel4.ru

i've spotted a following problem using DBD::Pg under win32. winsock
functions do not set errno, so in 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

Attachments:

libpq-winsock-errno.patchapplication/octet-stream; name=libpq-winsock-errno.patchDownload+33-15