Per discussion earlier today, here is a fix that lets ereport() on win32report socket errors.
//Magnus
<<win32_socketerror.patch>>