Bug #45550 Connector/C 6.0.1 blocs localhost
Submitted: 17 Jun 2009 7:34 Modified: 1 Feb 2011 17:02
Reporter: Arkadiusz Wronski Email Updates:
Status: No Feedback Impact on me:
None 
Category:Connector / C Severity:S3 (Non-critical)
Version:6.0.1 OS:Windows (XP Pro)
Assigned to: CPU Architecture:Any
Tags: connector, localhost

[17 Jun 2009 7: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 2009 9: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 2009 18: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 2009 5: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 2009 5: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.
[1 Jan 2011 17:02] Valeriy Kravchuk
Do you still have this problem with Connector/C 6.0.2?
[2 Feb 2011 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".