Bug #45550 Connector/C 6.0.1 blocs localhost
Submitted: 17 Jun 9:34 Modified: 2 Jul 7:43
Reporter: Arkadiusz Wronski
Status: Open
Category:Connector/C Severity:S3 (Non-critical)
Version:6.0.1 OS:Microsoft Windows (XP Pro)
Assigned to: Andrew Hutchings Target Version:
Tags: localhost, connector

[17 Jun 9:34] Arkadiusz Wronski
Description:
I herbly believe localhost is being blocked by new Connector C. I was going to use
libevent library but it is not going to work when localhost is blocked. I tried connector
5.51a and everything is fine, so it is not my PC but MyQSL connector. 

How to repeat:
Try to integrate libevent library in one aplication with mysql. It stops at
event_base_new(); libevent function when a pair of sockets is required. 

Suggested fix:
Compare differences with 5.51a. I have no clue how this can be fixed.
[17 Jun 11:06] Sveta Smirnova
Thank you for the report.

Please provide example of code showing how Connector/C 6.0.1 blocks localhost: this is
not clear from your explanation.
[1 Jul 20:34] Andrew Hutchings
Hello Arkadiusz,

Thank you for supplying the test code.  I have run your test on a Linux server after
creating the missing read_result function and it appears to work fine.  Please let us
know the exact error you are seeing.  If it is a connection error you may need to insert
mysql_error() to see what the actual error is.
[2 Jul 7:40] Arkadiusz Wronski
Hi,

Thanks for reply, I assumed you will be able to restore the issue on your machine.
Anyway, the error is unfortunately libevent error: [err] evsignal_init: socketpair: No
error. I know it is not MySQL error, but it only happens with new connector 6.0.1.
Everything is fine for other version I have - 5.51a.

Arkadiusz.
[2 Jul 7:43] Arkadiusz Wronski
Besides I am using WIN XP PRO, not Linux, and I am pretty sure libevent itself has
different code for achieving socket pair under XP and Linux. This is common error for OS'
with firewalls installed, but it works fine with other version of MySQL connector. 

Arkadiusz.