2013-01-06 20:57:45 |
Andrew Hutchings |
description |
Problem 1 (simple to fix):
in conn.cc around line 1007:
translate_windows_error();
should be:
errno= translate_windows_error();
Problem 2:
windows.hpp appears to be using errno.h from mingw whereas the rest of libdrizzle appears to be using errno.h from Linux's /usr/include.
In mingw:
EINPROGRESS = 112
In Linux:
EINPROGRESS = 115
So the 'if' line in conn.cc around line 1024 fails to catch EINPROGRESS due to the definition mismatch. This causes the connect function fail with a bad errno when in reality it is just waiting for a non-blocking connect. |
Problem 1 (simple to fix):
in conn.cc around line 1007:
translate_windows_error();
should be:
errno= translate_windows_error();
Problem 2:
conn.cc switch statement around 1188 doesn't handle EINPROGRESS |
|