← Back to team overview

maria-developers team mailing list archive

Patch for bug in libmysql

 

Hi, I'm new to this list. I have a bug and a patch for it for libmysql

There is a bug in the file libmariadb.c (on line 1761 in latest source). The line is as follows:

vio_wait_or_timeout(net->vio, FALSE, mysql->options.connect_timeout * 100) < 1)

The bug is that FALSE should be TRUE. The bug means that the mysql_real_connect does not
handle connection timeout correctly. It also means that the async connect call cannot
be used with an edge-triggered event system (such as WSAEventSelect in Windows).


Follow ups